fix(app): creation page waits for own grants; e2e never prints setup keys
Delta verifier: two remaining setup-key assertions now booleans. Its observation: the editor rule read grants before they loaded; authStore.catalogGrantsStatus (loading, ready, failed): the page waits, and a failed read leaves the decision to the server. App 654, e2e:ui 227, admin shell spec 14 + 6 skipped.
This commit is contained in:
1 parent
02625a76b6
commit
f04bfdd040
6 files changed
+37
-11
No files matched your search
@@ -250,13 +250,13 @@ for (const [locale, dict] of LANGUAGES) {
|
||||
'the enrolment step with the QR code',
|
||||
)
|
||||
const first = (await box.locator('code').textContent())?.trim() ?? ''
|
||||
expect(first).toMatch(/^[A-Z2-7]{16,}$/)
|
||||
expect(/^[A-Z2-7]{16,}$/.test(first), 'base32 setup key shown').toBe(true)
|
||||
await enterCode(box, dict, first)
|
||||
await expect(page.getByText(dict['mfa.enrol.done'])).toBeVisible()
|
||||
expect(await sessionAal(page)).toBe('aal2')
|
||||
// A second factor at aal2: no step-up asked.
|
||||
const second = await enrolFromPage(page, dict, 'Clé de secours')
|
||||
expect(second).not.toBe(first)
|
||||
expect(second !== first, 'a new setup key').toBe(true)
|
||||
await expect(factorList(page, dict)).toHaveCount(2)
|
||||
await expect(
|
||||
factorList(page, dict).filter({ hasText: dict['mfa.factor.verified'] }),
|
||||
|
||||
Reference in new issue
Block a user