Download slate/playwright/integration/examples/huge-document.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/huge-document.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/playwright/integration/examples/huge-document.test.ts
-
curl -L -o huge-document.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/huge-document.test.ts
466 Bytes
| import { test, expect } from '@playwright/test' | |
| test.describe('huge document example', () => { | |
| test.beforeEach(async ({ page }) => { | |
| await page.goto('http://localhost:3000/examples/huge-document') | |
| }) | |
| test('uses chunking', async ({ page }) => { | |
| await expect(page.getByLabel('Blocks')).toHaveValue('10000') | |
| await expect(page.getByLabel('Chunk size')).toHaveValue('1000') | |
| await expect(page.locator('[data-slate-chunk]')).toHaveCount(10) | |
| }) | |
| }) | |