next.js/test/e2e/app-dir/dynamic-import/dynamic-import.test.ts
dynamic-import.test.ts13 lines335 B
import { nextTestSetup } from 'e2e-utils'

describe('dynamic-import', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should render the dynamically imported component', async () => {
    const browser = await next.browser('/')
    expect(await browser.elementByCss('button').text()).toBe('submit')
  })
})
Quest for Codev2.0.0
/
SIGN IN