[ci] format
This commit is contained in:
parent
5161cf919c
commit
73eb4dfe2f
2 changed files with 4 additions and 4 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue