mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-22 07:28:14 +00:00
- Replace ~100 waitForTimeout calls with proper condition-based waits - Extract shared utilities for time input and task scheduling - Add timeout constants for consistent wait times - Add new selectors for reminder dialogs and detail panels Files refactored across 25+ test files including: - Plugin tests (lifecycle, upload, loading, enable, structure) - Reminder tests (view-task, schedule-page, default-options) - Work view, planner, focus mode, and app feature tests - Task dragdrop, autocomplete, and daily summary tests New utilities created: - e2e/utils/time-input-helper.ts - Robust time input filling - e2e/utils/schedule-task-helper.ts - Task scheduling helpers - e2e/constants/timeouts.ts - Standardized timeout values
22 lines
680 B
TypeScript
22 lines
680 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');
|
|
|
|
// 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 });
|
|
});
|
|
});
|