Download slate/playwright/integration/examples/plaintext.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/plaintext.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/playwright/integration/examples/plaintext.test.ts
-
curl -L -o plaintext.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/plaintext.test.ts
484 Bytes
| import { test, expect } from '@playwright/test' | |
| test.describe('plaintext example', () => { | |
| test.beforeEach( | |
| async ({ page }) => | |
| await page.goto('http://localhost:3000/examples/plaintext') | |
| ) | |
| test('inserts text when typed', async ({ page }) => { | |
| await page.getByRole('textbox').press('Home') | |
| await page.getByRole('textbox').pressSequentially('Hello World') | |
| expect(await page.getByRole('textbox').textContent()).toContain( | |
| 'Hello World' | |
| ) | |
| }) | |
| }) | |