mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-23 16:07:27 +00:00
25 lines
767 B
TypeScript
25 lines
767 B
TypeScript
import { expect, test } from '../../fixtures/test.fixture';
|
|
|
|
test.describe('Short Syntax', () => {
|
|
test('should add task with project via short syntax', async ({
|
|
page,
|
|
workViewPage,
|
|
}) => {
|
|
// Wait for work view to be ready
|
|
await workViewPage.waitForTaskList();
|
|
|
|
// Add a task with project short syntax
|
|
await workViewPage.addTask('0 test task koko +i');
|
|
|
|
// Wait a moment for the task to be processed
|
|
await page.waitForTimeout(500);
|
|
|
|
// Verify task is visible
|
|
const task = page.locator('task').first();
|
|
await expect(task).toBeVisible({ timeout: 10000 });
|
|
|
|
// Verify the task has the Inbox tag
|
|
const taskTags = task.locator('tag');
|
|
await expect(taskTags).toContainText('Inbox', { timeout: 5000 });
|
|
});
|
|
});
|