summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-02-07 01:03:04 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-02-07 01:03:04 +0000
commit04731b4e60e1068faaf12d92634aae148d8c8cd2 (patch)
tree8067abf12131ba3f1f68c4df7ca78cecf7641395
parentec38a8921f02a275949abcababe1b8afdf8184a2 (diff)
downloadastro-04731b4e60e1068faaf12d92634aae148d8c8cd2.tar.gz
astro-04731b4e60e1068faaf12d92634aae148d8c8cd2.tar.zst
astro-04731b4e60e1068faaf12d92634aae148d8c8cd2.zip
[ci] format
-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 }) => {