mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import { getDevIndicatorPosition } from './utils'
|
|
|
|
describe('devtools-position-bottom-right', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
nextConfig: {
|
|
devIndicators: {
|
|
position: 'bottom-right',
|
|
},
|
|
},
|
|
})
|
|
|
|
it('should devtools indicator position initially be bottom-right when configured', async () => {
|
|
const browser = await next.browser('/')
|
|
const style = await getDevIndicatorPosition(browser)
|
|
expect(style).toContain('bottom: 20px')
|
|
expect(style).toContain('right: 20px')
|
|
})
|
|
})
|