Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/e2e/flows/task-drawer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ test.describe('TaskDrawer — редактирование задачи', () =>
// getByRole('button') чтобы не попасть на span 'Метки' в сайдбаре
await page.getByRole('button', { name: 'Метки' }).click();
// .first() т.к. labelName может матчиться в picker list И в sidebar labels
await expect(page.getByText(labelName).first()).toBeVisible({ timeout: 10000 });
await page.getByText(labelName).first().click();
// Метка назначена — picker ещё открыт (Escape закрыл бы drawer целиком)
// Проверяем что метка видна — .first() избегает strict mode
Expand Down
4 changes: 2 additions & 2 deletions frontend/e2e/smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ test('CIO demo smoke: full user journey', async ({ page }) => {
// ── 7. Open task drawer ──────────────────────────────────────────────────────
await page.locator(`text=${taskTitle}`).first().click();
// Task drawer opens — wait for the comments tab to be available
await expect(page.locator('text=Комментарии')).toBeVisible({ timeout: 5000 });
await expect(page.locator('text=Комментарии')).toBeVisible({ timeout: 10000 });

// ── 8. Add a comment (click Comments tab first) ───────────────────────────────
await page.locator('text=Комментарии').click();
const commentInput = page.locator('textarea[placeholder="Написать комментарий..."]');
await commentInput.waitFor({ timeout: 5000 });
await commentInput.waitFor({ timeout: 10000 });
await commentInput.fill('Hello from e2e smoke test');
await page.locator('button:has-text("Отправить")').click();
await expect(page.locator('text=Hello from e2e smoke test')).toBeVisible({ timeout: 5000 });
Expand Down
Loading