mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
21 lines
627 B
TypeScript
21 lines
627 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import { waitForNoRedbox } from 'next-test-utils'
|
|
|
|
describe('metadata-route-like-pages', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should able to visit sitemap page', async () => {
|
|
const browser = await next.browser('/sitemap')
|
|
await waitForNoRedbox(browser)
|
|
expect(await browser.elementByCss('h1').text()).toBe('Sitemap')
|
|
})
|
|
|
|
it('should able to visit icon page', async () => {
|
|
const browser = await next.browser('/icon')
|
|
await waitForNoRedbox(browser)
|
|
expect(await browser.elementByCss('h1').text()).toBe('Icon')
|
|
})
|
|
})
|