Playwright: Svelte Slots Reproduction

git clone [email protected]:aMediocreDad/playwright-svelte-slots-repro.git
cd playwright-svelte-slots-repro
npm install
npm test

Expected

Note Tests pass.

Specifically, the final assert:

const component = await mount(Component, {
    //...
    slots: {
        // According to FAQ: https://github.com/microsoft/playwright/issues/14298
        // the following should pass the text to the slot named "text'.
        text: "Hello World",
    },
});

// ...

// This assert should therefore pass.
await expect(text).toContainText("Hello World");

Actual

Warning Tests fail.

// This assert fails.
await expect(text).toContainText("Hello World");

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes