next.js/test/development/app-dir/devtools-position/top-right-position.test.ts
top-right-position.test.ts21 lines581 B
import { nextTestSetup } from 'e2e-utils'
import { getDevIndicatorPosition } from './utils'

describe('devtools-position-top-right', () => {
  const { next } = nextTestSetup({
    files: __dirname,
    nextConfig: {
      devIndicators: {
        position: 'top-right',
      },
    },
  })

  it('should devtools indicator position initially be top-right when configured', async () => {
    const browser = await next.browser('/')
    const style = await getDevIndicatorPosition(browser)
    expect(style).toContain('top: 20px')
    expect(style).toContain('right: 20px')
  })
})
Quest for Codev2.0.0
/
SIGN IN