mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
13 lines
335 B
TypeScript
13 lines
335 B
TypeScript
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')
|
|
})
|
|
})
|