react-code-dataset / next.js /test /development /app-dir /devtool-copy-button /devtool-copy-button.test.ts
Download next.js/test/development/app-dir/devtool-copy-button/devtool-copy-button.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/test/development/app-dir/devtool-copy-button/devtool-copy-button.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/test/development/app-dir/devtool-copy-button/devtool-copy-button.test.ts
-
curl -L -o devtool-copy-button.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/test/development/app-dir/devtool-copy-button/devtool-copy-button.test.ts
517 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('app-dir - devtool-copy-button', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| env: { | |
| NODE_OPTIONS: '--inspect', | |
| DEBUG: '1', | |
| }, | |
| }) | |
| it('should has inspect url copy button', async () => { | |
| const browser = await next.browser('/') | |
| expect( | |
| await browser | |
| .elementByCss('[data-nextjs-data-runtime-error-copy-devtools-url]') | |
| .getAttribute('aria-label') | |
| ).toBe('Copy Chrome DevTools URL') | |
| }) | |
| }) | |