react-code-dataset / next.js /test /e2e /app-dir /async-component-preload /async-component-preload.test.ts
Download next.js/test/e2e/app-dir/async-component-preload/async-component-preload.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/async-component-preload/async-component-preload.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/async-component-preload/async-component-preload.test.ts
-
curl -L -o async-component-preload.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/async-component-preload/async-component-preload.test.ts
413 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('async-component-preload', () => { | |
| const { next, skipped } = nextTestSetup({ | |
| files: __dirname, | |
| skipDeployment: true, | |
| }) | |
| if (skipped) { | |
| return | |
| } | |
| it('should handle redirect in an async page', async () => { | |
| const browser = await next.browser('/') | |
| expect(await browser.waitForElementByCss('#success').text()).toBe('Success') | |
| }) | |
| }) | |