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
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m30s
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user