Files
Oxicloud/tests/e2e/scenarios/codegen/authed.spec.ts
T

21 lines
769 B
TypeScript
Raw Normal View History

import { test, apiLogin } from '../helpers';
/**
* Codegen recorder — START: signed in, on the file browser.
*
* Run via `just front-codegen` → pick "authed". Boots an isolated container
* stack, runs the setup below, then page.pause() opens the Inspector. Click
* the Record ⏺ button to start generating; copy the code into a real
* *.spec.ts (see scenarios/example.template.ts).
*
* Extend the setup to record from a deeper state (e.g. open a folder, start an
* upload) — everything before page.pause() runs first, so you record the
* continuation.
*/
test('codegen: authed', async ({ page }) => {
test.setTimeout(0); // recorder stays open until you close the Inspector
await apiLogin(page);
await page.goto('/');
await page.pause();
});