mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
ec38a8921f
commit
04731b4e60
1 changed files with 15 additions and 4 deletions
|
@ -113,18 +113,29 @@ test.describe('Lit components', () => {
|
||||||
await expect(label, 'component is visible').toBeVisible();
|
await expect(label, 'component is visible').toBeVisible();
|
||||||
|
|
||||||
// Light DOM reconstructed correctly (slots are rendered alphabetically) and shadow dom content rendered
|
// 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
|
// 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 .foo1'), 'slotted element is visible').toBeVisible();
|
||||||
await expect(page.locator('#client-only .foo2'), 'slotted element is visible').toBeVisible();
|
await expect(page.locator('#client-only .foo2'), 'slotted element is visible').toBeVisible();
|
||||||
|
|
||||||
// Non-projected content should not be visible
|
// 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
|
// 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 }) => {
|
t.skip('HMR', async ({ page, astro }) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue