style(e2e): apply prettier to the matcher and auth-setup edits

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Sergey Kozyrenko
2026-07-22 06:00:24 +07:00
co-authored by Claude Opus 4.8
parent abef4e29b8
commit 2615510a0d
2 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -136,9 +136,7 @@ export class MockWorld {
// Key on the request's variables, not the entry's: an entry written without variables would
// otherwise merge every flow's subscribers onto one stream, and the second would join delta-only.
return entry
? { entry, streamKey: `sub:${operationName}:${stableStringify(variables ?? {})}` }
: undefined;
return entry ? { entry, streamKey: `sub:${operationName}:${stableStringify(variables ?? {})}` } : undefined;
}
registerSocket(socket: MockSocket): void {
+3 -1
View File
@@ -18,7 +18,9 @@ setup('authenticate', async ({ page }) => {
const skip = page.getByRole('button', { name: 'Skip for now' });
// The user menu is labelled with the signed-in address, so derive the "logged in" signal
// from E2E_USER rather than a hardcoded admin@ (there is no button named "flows").
const loggedIn = page.getByRole('button', { name: new RegExp(E2E_USER.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'i') });
const loggedIn = page.getByRole('button', {
name: new RegExp(E2E_USER.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'i'),
});
await expect(skip.or(loggedIn).first()).toBeVisible({ timeout: 15_000 });