refactor: simplify array initialization in child sort order tests
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m30s

This commit is contained in:
2026-03-26 12:51:29 -04:00
parent 028f99b5c3
commit 469a2ffc24
2 changed files with 8 additions and 22 deletions

View File

@@ -135,10 +135,9 @@ test.describe('Notification click navigates and scrolls to task', () => {
await notifItem.click()
// Verify navigation to parent child view with scrollTo query param
await page.waitForURL(
new RegExp(`/parent/${childId}\\?scrollTo=.*&entityType=chore`),
{ timeout: 5000 },
)
await page.waitForURL(new RegExp(`/parent/${childId}\\?scrollTo=.*&entityType=chore`), {
timeout: 5000,
})
// Verify the target chore card is scrolled into viewport
const targetCard = choreSection(page).locator('.item-card').filter({ hasText: targetChoreName })
@@ -156,10 +155,9 @@ test.describe('Notification click navigates and scrolls to task', () => {
await notifItem.click()
await page.waitForURL(
new RegExp(`/parent/${childId}\\?scrollTo=.*&entityType=reward`),
{ timeout: 5000 },
)
await page.waitForURL(new RegExp(`/parent/${childId}\\?scrollTo=.*&entityType=reward`), {
timeout: 5000,
})
const targetCard = rewardSection(page).locator('.item-card').filter({ hasText: REWARD_NAME })
await expect(targetCard).toBeVisible({ timeout: 5000 })