aboutsummaryrefslogtreecommitdiff
path: root/packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro')
-rw-r--r--packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro b/packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro
new file mode 100644
index 000000000..780ada07b
--- /dev/null
+++ b/packages/astro/e2e/fixtures/dev-toolbar/src/layout/Layout.astro
@@ -0,0 +1,18 @@
+---
+import { ClientRouter } from 'astro:transitions';
+---
+<html lang="en">
+ <head>
+ <title>View Transition Test</title>
+ <ClientRouter />
+ <script is:inline>
+ // let playwright know when navigate() is done
+ document.addEventListener('astro:before-swap', (e) => {
+ e.viewTransition.ready.then(()=>console.log("ready"))
+ });
+ </script>
+ </head>
+ <body>
+ <slot />
+ </body>
+</html>