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 a148ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/nav-link-item-without-suffix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ test.describe('Nav should functions well', async () => {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[0].click({ force: true, timeout: 1000 });
await itemsAndLinkChildren[0].click();
await page.waitForURL('**/child-1');
expect(page.url()).toBe(gotoPage('/items-and-link/child-1'));

await page.goto(gotoPage('/'), {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[1].click({ force: true, timeout: 1000 });
await itemsAndLinkChildren[1].click();
await page.waitForURL('**/child-2');
expect(page.url()).toBe(gotoPage('/items-and-link/child-2'));
});
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/nav-link-item.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ test.describe('Nav should functions well', async () => {
waitUntil: 'networkidle',
});
await itemsAndLinkButton.hover();
await itemsAndLinkChildren[0].click({ force: true, timeout: 1000 });
await itemsAndLinkChildren[0].click();
expect(page.url()).toBe(gotoPage('/items-and-link/child-1.html'));

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

Expand Down

0 comments on commit a148ac7

Please sign in to comment.