Skip to content

Commit b02ef84

Browse files
committed
chore: update-e2e
1 parent c5dbebf commit b02ef84

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

e2e/journey-suites/src/otp-register.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ test('Test happy paths on test page', async ({ page }) => {
2626
await page.getByLabel('Password').fill(password);
2727
await clickButton('Submit', '/authenticate');
2828

29-
await expect(page.getByText('Complete')).toBeVisible();
29+
await expect(() => expect(page.getByText('Scan the QR code')).toBeVisible()).toPass();
3030

3131
// Test assertions
3232
expect(
3333
messageArray.includes(
3434
'Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.',
3535
),
3636
).toBe(true);
37-
expect(messageArray.includes('otp')).toBe(true);
3837

3938
// TODO: Use when AM Mock API is available
4039
// expect(

0 commit comments

Comments
 (0)