summaryrefslogtreecommitdiff
path: root/packages/astro/e2e/astro-component.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/e2e/astro-component.test.js')
-rw-r--r--packages/astro/e2e/astro-component.test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/astro/e2e/astro-component.test.js b/packages/astro/e2e/astro-component.test.js
index ac5531fbe..7308ea292 100644
--- a/packages/astro/e2e/astro-component.test.js
+++ b/packages/astro/e2e/astro-component.test.js
@@ -44,6 +44,9 @@ test.describe('Astro component HMR', () => {
await page.goto(astro.resolveUrl('/'));
await initialLog;
+ const el = page.locator('#hoisted-script');
+ expect(await el.innerText()).toContain('Hoisted success');
+
const updatedLog = page.waitForEvent(
'console',
(message) => message.text() === 'Hello, updated Astro!'