Skip to content

feat(codeceptjs): use the Playwright helper with agent-codeceptjs 5 - #104

Merged
pashidlos merged 1 commit into
masterfrom
feat/codeceptjs-playwright
Nov 2, 2026
Merged

pashidlos merged 1 commit into
masterfrom
feat/codeceptjs-playwright

Conversation

@pashidlos

Copy link
Copy Markdown
Member

Draft: depends on agent-codeceptjs 5.0.0 being published to npm (Visual-Regression-Tracker/agent-codeceptjs#53). Until then, the agent-codeceptjs CI job fails at npm ci with a 404 for agent-codeceptjs-5.0.0.tgz. The other jobs are unaffected.

agent-codeceptjs 5 fixes the crash with the CodeceptJS Playwright helper (4.6.1 read the return value of saveScreenshot(), which the Playwright helper doesn't return). This switches the CodeceptJS example back from the WebDriver workaround:

  • Example:
    • CodeceptJS 4.2.2 with the Playwright helper (chromium, 1280x720) and @visual-regression-tracker/agent-codeceptjs ^5.0.0.
    • The npm overrides for sdk-js and webdriverio are dropped.
    • The second vrtTrack takes a full-page shot (fullScreen: true).
  • CI: the agent-codeceptjs job now installs Playwright's chromium.
  • Dependabot: CodeceptJS majors are no longer ignored.
  • README: both READMEs are updated.

The lockfile was generated from an npm pack of the agent branch, with that one entry pointed at the registry URL 5.0.0 will have. Once 5.0.0 is on npm, re-run CI. If npm ci still complains, run npm install in agent-codeceptjs/ and push the lockfile.

Verification

  • Ran the example locally on Node 24 against a visualregressiontracker/api:6.0.0-rc1 stack (this repo's .github/vrt compose file), using the packed agent. Both vrtTrack calls were tracked, and the run passed.
  • The BODY_PARSER_JSON_LIMIT in the compose file stays for Cypress. agent-codeceptjs 5 uploads screenshots as multipart and no longer needs it.

Before marking ready

  1. Merge feat!: support CodeceptJS 3.7+/4 and Visual Regression Tracker 6 agent-codeceptjs#53 and let it release 5.0.0. That needs the v4.6.1 tag and the npm trusted publisher described there.
  2. Re-run this PR's CI.

🤖 Generated with Claude Code

agent-codeceptjs 5 works with the CodeceptJS 3/4 Playwright helper, so
the example moves from WebDriver back to Playwright on CodeceptJS 4. The
sdk-js override and the Dependabot ignore for CodeceptJS majors go away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pashidlos
pashidlos force-pushed the feat/codeceptjs-playwright branch from 0bdbd7a to 4b2a20f Compare November 2, 2026 22:44
@pashidlos
pashidlos marked this pull request as ready for review November 2, 2026 22:44
@pashidlos
pashidlos merged commit 3980e61 into master Nov 2, 2026
6 checks passed
@pashidlos
pashidlos deleted the feat/codeceptjs-playwright branch November 2, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant