Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Jan 6, 2025
1 parent 3a03e34 commit a75c292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/tests/nav-link-item-without-suffix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ test.describe('Nav should functions well', async () => {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[0].waitFor({ state: 'visible', timeout: 5000 });
await itemsAndLinkChildren[0].click({ force: true, timeout: 1000 });
await page.waitForURL('**/child-1');
expect(page.url()).toBe(gotoPage('/items-and-link/child-1'));
Expand All @@ -110,6 +111,7 @@ test.describe('Nav should functions well', async () => {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[1].waitFor({ state: 'visible', timeout: 5000 });
await itemsAndLinkChildren[1].click({ force: true, timeout: 1000 });
await page.waitForURL('**/child-2');
expect(page.url()).toBe(gotoPage('/items-and-link/child-2'));
Expand Down
2 changes: 2 additions & 0 deletions e2e/tests/nav-link-item.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,15 @@ test.describe('Nav should functions well', async () => {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[0].waitFor({ state: 'visible', timeout: 5000 });
await itemsAndLinkChildren[0].click({ force: true, timeout: 1000 });
expect(page.url()).toBe(gotoPage('/items-and-link/child-1.html'));

await page.goto(gotoPage('/'), {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[1].waitFor({ state: 'visible', timeout: 5000 });
await itemsAndLinkChildren[1].click({ force: true, timeout: 1000 });
expect(page.url()).toBe(gotoPage('/items-and-link/child-2.html'));
});
Expand Down

0 comments on commit a75c292

Please sign in to comment.