test: align release E2E selectors (#829)

Fixes #828
This commit is contained in:
Brad Groux 2026-07-12 18:50:37 -05:00 committed by GitHub
parent 4b84eccd1b
commit 98267c79ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -585,7 +585,7 @@ test.describe('v5 Mantine migration QA gate', () => {
await page.keyboard.press('Escape');
await expect(page.getByRole('dialog')).not.toBeVisible({ timeout: 5_000 });
await page.getByRole('button', { name: 'Settings', exact: true }).click();
await page.getByRole('button', { name: 'Mobile settings', exact: true }).click();
await expect(page.getByRole('dialog')).toBeVisible({ timeout: 5_000 });
await assertNoHorizontalOverflow(page);
await assertMobileTouchTargets(page);

View file

@ -64,7 +64,9 @@ test.describe('Task Creation', () => {
await expect(dialog).not.toBeVisible({ timeout: 15_000 });
// The new task should appear on the board (in the To Do column)
const taskCard = page.locator('text=E2E Created Task');
const taskCard = page
.getByRole('region', { name: 'To Do' })
.getByRole('heading', { name: 'E2E Created Task', exact: true });
await expect(taskCard).toBeVisible({ timeout: 10_000 });
// Clean up — find the task ID via API and queue for deletion