mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('app dir - metadata image files', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should handle imported metadata images', async () => {
|
|
const browser = await next.browser('/')
|
|
const images = await browser.elementsByCss('img')
|
|
expect(images.length).toBe(5)
|
|
|
|
for (const image of images) {
|
|
const src = await image.getAttribute('src')
|
|
expect(src).not.toContain('undefined')
|
|
}
|
|
})
|
|
})
|