react-code-dataset
/
next.js
/test
/e2e
/app-dir
/async-component-preload
/async-component-preload.test.ts
| 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') | |
| }) | |
| }) | |