[ci] format

This commit is contained in:
matthewp 2023-02-07 01:03:04 +00:00 committed by fredkbot
parent ec38a8921f
commit 04731b4e60

View file

@ -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 }) => {