File size: 385 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { test, expect } from '@playwright/test'
test.describe('embeds example', () => {
const slateEditor = 'div[data-slate-editor="true"]'
test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:3000/examples/embeds')
})
test('contains embeded', async ({ page }) => {
await expect(page.locator(slateEditor).locator('iframe')).toHaveCount(1)
})
})
|