Download slate/playwright/integration/examples/images.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/images.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/playwright/integration/examples/images.test.ts
-
curl -L -o images.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/playwright/integration/examples/images.test.ts
325 Bytes
| import { test, expect } from '@playwright/test' | |
| test.describe('images example', () => { | |
| test.beforeEach(async ({ page }) => { | |
| await page.goto('http://localhost:3000/examples/images') | |
| }) | |
| test('contains image', async ({ page }) => { | |
| await expect(page.getByRole('textbox').locator('img')).toHaveCount(2) | |
| }) | |
| }) | |