diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 33cad86a2d8c..9c59ba9ab577 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -69,8 +69,8 @@ const { fallback = 'animate' } = Astro.props as Props; doc.documentElement.dataset.astroTransition = dir; const swap = () => { document.documentElement.replaceWith(doc.documentElement); - triggerEvent('astro:beforeload') - } + triggerEvent('astro:beforeload'); + }; // Wait on links to finish, to prevent FOUC const links = Array.from(doc.querySelectorAll('head link[rel=stylesheet]')).map( diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js index 2dd02afe21ba..12ccd2b891a8 100644 --- a/packages/astro/e2e/view-transitions.test.js +++ b/packages/astro/e2e/view-transitions.test.js @@ -168,9 +168,9 @@ test.describe('View Transitions', () => { // go to page 2 await page.click('#click-two'); p = page.locator('#two'); - const h = page.locator('html'); + const h = page.locator('html'); await expect(h, 'imported CSS updated').toHaveCSS('background-color', 'rgba(0, 0, 0, 0)'); - }) + }); test('click hash links does not do navigation', async ({ page, astro }) => { // Go to page 1