mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
parent
45b3476c8c
commit
d27854f1e7
@ -0,0 +1 @@
|
||||
<div>test</div>
|
@ -16,6 +16,7 @@
|
||||
|
||||
import { test, expect } from '@playwright/experimental-ct-svelte';
|
||||
import Button from './components/Button.svelte';
|
||||
import Component from './components/Component.svelte';
|
||||
import DefaultSlot from './components/DefaultSlot.svelte';
|
||||
import MultiRoot from './components/MultiRoot.svelte';
|
||||
import Empty from './components/Empty.svelte';
|
||||
@ -54,6 +55,11 @@ test('render a default slot', async ({ mount }) => {
|
||||
await expect(component).toContainText('Main Content')
|
||||
})
|
||||
|
||||
test('render a component without options', async ({ mount }) => {
|
||||
const component = await mount(Component);
|
||||
await expect(component).toContainText('test');
|
||||
})
|
||||
|
||||
test('run hooks', async ({ page, mount }) => {
|
||||
const messages = []
|
||||
page.on('console', m => messages.push(m.text()))
|
||||
|
Loading…
Reference in New Issue
Block a user