Download slate/playwright/integration/examples/embeds.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/embeds.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/playwright/integration/examples/embeds.test.ts
-
curl -L -o embeds.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/embeds.test.ts
385 Bytes
| 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) | |
| }) | |
| }) | |