Skip to content

Commit 9e5f6d2

Browse files
committed
Add 100ms between navigation events to capture some duration between events
1 parent 711942a commit 9e5f6d2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/nextjs/test/integration/test/browser/sessionNavigate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ module.exports = async ({ page, url, requests }) => {
99
errors: 0,
1010
});
1111

12+
await sleep(100);
13+
1214
await waitForAll([
1315
page.click('a#alsoHealthy'),
1416
page.waitForRequest(isSessionRequest),
@@ -27,6 +29,8 @@ module.exports = async ({ page, url, requests }) => {
2729
errors: 0,
2830
});
2931

32+
await sleep(100);
33+
3034
await waitForAll([
3135
page.click('a#healthy'),
3236
page.waitForRequest(isSessionRequest),

packages/nextjs/test/integration/test/browser/tracingNavigate.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = async ({ page, url, requests }) => {
1515
});
1616

1717
await sleep(100);
18+
1819
await page.click('a#alsoHealthy');
1920
await page.waitForRequest(isTransactionRequest);
2021

@@ -32,6 +33,7 @@ module.exports = async ({ page, url, requests }) => {
3233
});
3334

3435
await sleep(100);
36+
3537
await page.click('a#healthy');
3638
await page.waitForRequest(isTransactionRequest);
3739

0 commit comments

Comments
 (0)