Files
e2e/packages/github
Oskar Kwaśniewski 8657c8b710 test(mobile): fake clock in engine tests, drop the simulator suite CI never ran (#808)
* test(mobile): fake the clock and shrink PNGs in engine tests, trim duplicates

engine.test.ts 6.4s -> 0.4s: retry backoff and transition budgets on fake timers, small screenshots. Merge or drop tests restating constants or covered elsewhere; prose asserts in errors.test check the headline and recovery only.

* test(mobile): delete the simulator suite no workflow runs

E2E_AGENT_DEVICE_SIMULATOR was never set in CI; the mobile benchmark drives real simulators and emulators. Drops test:simulator and the integration project.

* test(mobile): cover duplicate refind, clipboard step label, unreadable secure screenshot

* test(eas): restore Date.now in afterEach, unique run ids, drop constant asserts

* test(github): drop the factory tautology and markdown asserts core owns

* test(mobile): keep the videoTouches and interactive snapshot option checks

* test(mobile): name the openApp permission refusal by what it checks
2026-10-04 10:10:57 +02:00
..
2026-10-04 09:12:59 +02:00

@e2e-dev/github

The GitHub reporter for e2e. From GitHub Actions, every run becomes one pull request comment, edited in place on reruns, and the same text lands in the job summary.

npm install --save-dev @e2e-dev/github
import type { E2EConfig } from 'e2e';
import { web } from '@e2e-dev/web';
import { github } from '@e2e-dev/github';

export default {
  targets: [{ engine: web(), app: { url: 'http://localhost:3000' } }],
  reporters: ['list', github()],
} satisfies E2EConfig;

The job needs permissions: pull-requests: write and the step that runs e2e needs GITHUB_TOKEN: ${{ github.token }} in its env. Matrix replicas of one job pass a key so their comments stay apart. When the reporter cannot post (another CI, a push, a fork's read-only token) it says why in one summary row and never changes the run's exit code.

Full documentation lives at e2e.tester.army/docs/github.

License

Apache-2.0