JIMDRURY.
Jim Drury
Flat pink editorial graphic of one model call, then a cached replay of agent steps, with a live assertion still to come.
ai

Tester Army’s e2e fires the model once, then keeps the assertion

7 MIN READ

Goals where the screen is messy, checks where you already know

A goal, then a locator
import { test, expect } from 'e2e';

test('a member upgrades to Pro', async ({ app, agent, screen }) => {
  await app.open('/settings/billing');

  await agent.act('upgrade the workspace to the Pro plan');
  await agent.assert('the invoice preview shows a prorated amount');

  await expect(screen.getByRole('status')).toContainText('Pro');
});

The cache is the actual idea

What I’d actually want it for


Thoughts

Similar Articles