Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Apr 26, 2024
1 parent 0963455 commit 3211e7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixture/src/pages/repl/five.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ReplacementSwap from 'astro-vtbot/components/ReplacementSwap.astro';

<Layout title="Repl5">
<ReplacementSwap slot="head" />
<meta name="persist" data-astro-transition-persist="head" slot="head" content="5"/>
<header>Header5</header>
<main data-vtbot-replace="main1">
<div>
Expand Down
1 change: 1 addition & 0 deletions test/fixture/src/pages/repl/six.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ReplacementSwap from 'astro-vtbot/components/ReplacementSwap.astro';

<Layout title="Repl6">
<ReplacementSwap slot="head" />
<meta data-astro-transition-persist="head" slot="head" content="6">
<header>Header6</header>
<main data-vtbot-replace="main1">
<div>
Expand Down
1 change: 1 addition & 0 deletions test/vt-bot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ test.describe('ReplacementSwap', () => {
await page.locator('#six').click();
await expect(page).toHaveTitle('Repl6');
expect(await page.locator('main #persist').count()).toBe(1);
expect(await page.locator('head meta[name="persist"]').getAttribute("content")).toBe('5');
});

});
Expand Down

0 comments on commit 3211e7f

Please sign in to comment.