From 3211e7f012a9cbb8cf1b386ff5bd08aefa42ebfc Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:18:17 +0200 Subject: [PATCH] updates tests --- test/fixture/src/pages/repl/five.astro | 1 + test/fixture/src/pages/repl/six.astro | 1 + test/vt-bot.spec.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/test/fixture/src/pages/repl/five.astro b/test/fixture/src/pages/repl/five.astro index 6a3bc10..9b91973 100644 --- a/test/fixture/src/pages/repl/five.astro +++ b/test/fixture/src/pages/repl/five.astro @@ -5,6 +5,7 @@ import ReplacementSwap from 'astro-vtbot/components/ReplacementSwap.astro'; +
Header5
diff --git a/test/fixture/src/pages/repl/six.astro b/test/fixture/src/pages/repl/six.astro index 5272340..12cbaf5 100644 --- a/test/fixture/src/pages/repl/six.astro +++ b/test/fixture/src/pages/repl/six.astro @@ -5,6 +5,7 @@ import ReplacementSwap from 'astro-vtbot/components/ReplacementSwap.astro'; +
Header6
diff --git a/test/vt-bot.spec.ts b/test/vt-bot.spec.ts index 0131f55..ca8a479 100644 --- a/test/vt-bot.spec.ts +++ b/test/vt-bot.spec.ts @@ -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'); }); });