mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-24 12:06:36 +00:00
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:
co-authored by
Claude Opus 4.8
parent
abef4e29b8
commit
2615510a0d
@@ -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 {
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user