try to fix this spaghetti of a code

This commit is contained in:
Frederik Spirgi
2026-09-09 14:56:05 +02:00
parent b9bccb5cfc
commit 197276bbda
11 changed files with 216 additions and 457 deletions
+12
View File
@@ -54,3 +54,15 @@ test('login fits a narrow viewport and protected pages redirect',async({page})=>
expect(await page.evaluate(()=>document.documentElement.scrollWidth <= innerWidth)).toBe(true);
await expect(page.getByLabel('Username',{exact:true})).toBeVisible();
});
test('secret shortcut displays every staged cue', async ({page}) => {
await register(page, `cue-${Date.now()}`);
await page.keyboard.press('Alt');
await page.keyboard.press('j');
await expect(page.locator('#secret-cue')).toHaveText('J');
await page.keyboard.press('f');
await expect(page.locator('#secret-cue')).toHaveText('F');
await expect(page.locator('#secret-cue')).toHaveClass(/secret-cue-strong/);
await page.keyboard.press('k');
await expect(page.locator('#secret-cue')).toHaveText('K');
await expect(page.locator('#secret-flash')).toHaveClass(/secret-flash-active/);
});