summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/e2e/lit-component.test.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/packages/astro/e2e/lit-component.test.js b/packages/astro/e2e/lit-component.test.js
index 8303c7058..d73005b27 100644
--- a/packages/astro/e2e/lit-component.test.js
+++ b/packages/astro/e2e/lit-component.test.js
@@ -113,18 +113,29 @@ test.describe('Lit components', () => {
await expect(label, 'component is visible').toBeVisible();
// Light DOM reconstructed correctly (slots are rendered alphabetically) and shadow dom content rendered
- await expect(label, 'slotted text is in DOM').toHaveText('Framework client:only component Should not be visible Shadow dom default content should not be visible');
+ await expect(label, 'slotted text is in DOM').toHaveText(
+ 'Framework client:only component Should not be visible Shadow dom default content should not be visible'
+ );
// Projected content should be visible
- await expect(page.locator('#client-only .default'), 'slotted element is visible').toBeVisible();
+ await expect(
+ page.locator('#client-only .default'),
+ 'slotted element is visible'
+ ).toBeVisible();
await expect(page.locator('#client-only .foo1'), 'slotted element is visible').toBeVisible();
await expect(page.locator('#client-only .foo2'), 'slotted element is visible').toBeVisible();
// Non-projected content should not be visible
- await expect(page.locator('#client-only [slot="quux"]'), 'element without slot is not visible').toBeHidden();
+ await expect(
+ page.locator('#client-only [slot="quux"]'),
+ 'element without slot is not visible'
+ ).toBeHidden();
// Default slot content should not be visible
- await expect(page.locator('#client-only .defaultContent'), 'element without slot is not visible').toBeHidden();
+ await expect(
+ page.locator('#client-only .defaultContent'),
+ 'element without slot is not visible'
+ ).toBeHidden();
});
t.skip('HMR', async ({ page, astro }) => {