Skip to content

Add recording mode to record the interactions and create a test from it

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Jan 07:26

2.3.0 (2026-01-09)

Just replace the visit helper with record and you are all good to go.

test.group('Posts create', () => {
  test('create a new post', async ({ record, route }) => {
    /**
     * Opens the browser in recording mode.
     * Test timeout is disabled while recording.
     * Interact with the page, then close the browser
     * to see the generated test code.
     */
    await record(route('posts.create'))
  })
})

Bug Fixes

  • bind browserContext to the enableRecorder method (dc8bd5d)

Features

  • add context.record method to launch browser in record mode (dfba366)

Full Changelog: v2.2.0...v2.3.0