0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

[ci] format

This commit is contained in:
Bjorn Lu 2024-05-15 13:11:54 +00:00 committed by astrobot-houston
parent 5f353e39b2
commit 530ef95a20

View file

@ -176,7 +176,7 @@ test.describe("Prefetch (prefetchAll: true, defaultStrategy: 'tap')", () => {
page.waitForEvent('request'), // wait prefetch request page.waitForEvent('request'), // wait prefetch request
page.locator('#prefetch-search-param').hover(), page.locator('#prefetch-search-param').hover(),
]); ]);
await expectUrlPrefetched('/?search-param=true', page); await expectUrlPrefetched('/?search-param=true', page);
}); });
test('data-astro-prefetch="tap" should prefetch on tap', async ({ page, astro }) => { test('data-astro-prefetch="tap" should prefetch on tap', async ({ page, astro }) => {
@ -186,7 +186,7 @@ await expectUrlPrefetched('/?search-param=true', page);
page.waitForEvent('request'), // wait prefetch request page.waitForEvent('request'), // wait prefetch request
page.locator('#prefetch-tap').click(), page.locator('#prefetch-tap').click(),
]); ]);
await expectUrlPrefetched('/prefetch-tap', page); await expectUrlPrefetched('/prefetch-tap', page);
}); });
test('data-astro-prefetch="hover" should prefetch on hover', async ({ page, astro }) => { test('data-astro-prefetch="hover" should prefetch on hover', async ({ page, astro }) => {
@ -316,7 +316,7 @@ test.describe('Prefetch (default), Experimental ({ clientPrerender: true })', ()
let devServer; let devServer;
test.beforeAll(async ({ astro, browserName }) => { test.beforeAll(async ({ astro, browserName }) => {
test.skip(browserName !== 'chromium', 'Only Chromium supports clientPrerender') test.skip(browserName !== 'chromium', 'Only Chromium supports clientPrerender');
devServer = await astro.startDevServer({ devServer = await astro.startDevServer({
experimental: { experimental: {