File size: 413 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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')
  })
})