Skip to content

Commit a380f59

Browse files
committed
WIP Adjust timeout
1 parent a2f9191 commit a380f59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/publish-ci/cra5/tests/playwright/rtkq.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ test('RTK / RTKQ Interactions', async ({ page }) => {
44
await page.goto('http://localhost:3000')
55

66
const counterValue = page.getByTestId('counter-value')
7-
expect(counterValue).toHaveText('0')
7+
expect(counterValue).toHaveText('0', { timeout: 0 })
88

99
const increment = page.getByRole('button', { name: 'Increment value' })
1010
await increment.click()
1111

1212
expect(counterValue).toHaveText('1')
1313

1414
const timeValue = page.getByTestId('time-value')
15-
await timeValue.getByText(/\d+:\d+:\d+ (A|P)M/).waitFor({ timeout: 2000 })
15+
await timeValue.getByText(/\d+:\d+:\d+ (A|P)M/).waitFor({ timeout: 10000 })
1616

1717
const postValue = page.getByTestId('post-value')
18-
await postValue.getByText('A sample post').waitFor({ timeout: 2000 })
18+
await postValue.getByText('A sample post').waitFor({ timeout: 10000 })
1919

2020
// expect(timeValue).toHaveText(, {timeout: 5000, });
2121
})

0 commit comments

Comments
 (0)