Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
expect(await page.evaluate(() => (document.activeElement || {}).nodeName)).toBe('INPUT');
});

test('sets focus for valid hash but invalid selector', async ({ page }) => {

Check warning on line 45 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:server-side-route-resolution:build, js, 1/2)

flaky test: sets focus for valid hash but invalid selector

retries: 2
await page.goto('/reset-focus#an:invalid+selector');
await expect(page.locator('button')).toBeFocused();
});
Expand Down Expand Up @@ -109,7 +109,7 @@
await expect(page.locator('#input')).toBeFocused();
});

test('autofocus from previous page is ignored', async ({ page, clicknav }) => {

Check warning on line 112 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:cross-platform:build, windows-latest, 2)

flaky test: autofocus from previous page is ignored

retries: 2
await page.addInitScript(`
window.active = null;
window.addEventListener('focusin', () => window.active = document.activeElement);
Expand Down Expand Up @@ -186,8 +186,10 @@
await page.click('h1'); // The browsers block attempts to prevent navigation on a frame that's never had a user gesture.

await page.goBack();
expect(await page.innerHTML('pre')).toBe('1 false popstate');
expect(page.url()).toBe(baseURL + '/navigation-lifecycle/before-navigate/prevent-navigation');
await expect(page.locator('pre')).toHaveText('1 false popstate');
await expect(page).toHaveURL(
baseURL + '/navigation-lifecycle/before-navigate/prevent-navigation'
);
});

test('beforeNavigate prevents unload', async ({ page }) => {
Expand Down Expand Up @@ -232,7 +234,7 @@
await page.goBack();
expect(await page.textContent('h1')).toBe('before_navigate_ran: false');
});

Check warning on line 237 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:server-side-route-resolution:build, js, 1/2)

flaky test: beforeNavigate cancel() on an unloading navigation does not prevent subsequent beforeNavigate callbacks

retries: 2
test('beforeNavigate cancel() on an unloading navigation does not prevent subsequent beforeNavigate callbacks', async ({
page,
app
Expand Down Expand Up @@ -484,7 +486,7 @@
await page.locator('#non-ascii-anchor').click();
expect(await in_view('#go-to-encöded')).toBe(true);
});

Check warning on line 489 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:cross-platform:build, windows-latest, 2)

flaky test: url-supplied anchor with special characters works on navigation to page

retries: 2
test('url-supplied anchor with special characters works on navigation to page', async ({
page,
in_view,
Expand Down Expand Up @@ -695,7 +697,7 @@
expect(await page.evaluate(() => window.scrollY)).toBe(0);
}
});

Check warning on line 700 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:server-side-route-resolution:dev, js, 1/2)

flaky test: Scroll position is correct after going back from a shallow route

retries: 2
test('Scroll position is correct after going back from a shallow route', async ({
page,
scroll_to
Expand Down Expand Up @@ -805,7 +807,7 @@
'This is the static error page with the following message: Not allowed'
);
});

Check warning on line 810 in packages/kit/test/apps/basics/test/cross-platform/client.test.js

View workflow job for this annotation

GitHub Actions / e2e (test:cross-platform:build, windows-latest, 2)

flaky test: Root 404 redirects somewhere due to root layout

retries: 2
test('Root 404 redirects somewhere due to root layout', async ({ page, baseURL, clicknav }) => {
await page.goto('/errors/error-html');
await clicknav('button:text-is("Redirect")');
Expand Down
Loading