next.js/test/e2e/app-dir/ppr-history-replace-state/ppr-history-replace-state.test.ts
ppr-history-replace-state.test.ts15 lines438 B
import { nextTestSetup } from 'e2e-utils'

describe('ppr-history-replace-state', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should not remount component', async () => {
    const browser = await next.browser('/')
    await await browser.elementByCss('input').type('a')
    // When the input is remounted, its value is cleared.
    expect(await browser.elementByCss('input').getValue()).toBe('a')
  })
})
Quest for Codev2.0.0
/
SIGN IN