mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 19:04:43 +00:00
19 lines
641 B
TypeScript
19 lines
641 B
TypeScript
import { expect, test } from '../../fixtures/test.fixture';
|
|
|
|
test.describe('Simple Subtask', () => {
|
|
test('should create subtask with keyboard shortcut', async ({ page, workViewPage }) => {
|
|
// Add parent task
|
|
await workViewPage.addTask('Parent Task');
|
|
|
|
const task = page.locator('task');
|
|
|
|
await workViewPage.addSubTask(task, 'SubTask 1');
|
|
|
|
const subTask = task.locator('.sub-tasks task');
|
|
await subTask.waitFor({ state: 'visible' });
|
|
|
|
// Verify subtask was created with correct content
|
|
const subtaskTitle = subTask.locator('task-title');
|
|
await expect(subtaskTitle).toContainText('SubTask 1');
|
|
});
|
|
});
|