johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
// bob finds alice's notes and stars it: the count goes up as he clicks.
import { film } from '../camera.mjs';
export default {
as: 'bob',
start: () => '/alice.test/notes',
film: async ({ page, world, size, take }) => {
const shot = await film(take, page, size);
try {
await shot.open(`${world.base}/alice.test/notes`);
await shot.hold(1000);
shot.mark('star');
await shot.click(page.getByRole('button', { name: 'Star', exact: true }));
await page.getByRole('button', { name: 'Starred' }).waitFor();
shot.mark('starred');
await shot.hold(1800);
} finally {
await shot.cut();
}
}
};