File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111
1212test ( 'Test happy paths on test page' , async ( { page } ) => {
1313 const { clickButton, navigate } = asyncEvents ( page ) ;
14- await navigate ( '/?journey=TEST_OTPRegistration&clientId=tenant ' ) ;
14+ await navigate ( '/?journey=QRCodeTest ' ) ;
1515
1616 const messageArray : string [ ] = [ ] ;
1717
@@ -30,16 +30,10 @@ test('Test happy paths on test page', async ({ page }) => {
3030
3131 // Test assertions
3232 expect (
33- messageArray . includes (
34- 'Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.' ,
33+ messageArray . some ( ( msg ) =>
34+ msg . includes (
35+ 'Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.' ,
36+ ) ,
3537 ) ,
3638 ) . toBe ( true ) ;
37-
38- // TODO: Use when AM Mock API is available
39- // expect(
40- // messageArray.includes(
41- // 'otpauth://totp/ForgeRock:jlowery?secret=QITSTC234FRIU8DD987DW3VPICFY======&issuer=ForgeRock&period=30&digits=6&b=032b75',
42- // ),
43- // ).toBe(true);
44- // expect(messageArray.includes('Basic login with OTP registration step successful')).toBe(true);
4539} ) ;
You can’t perform that action at this time.
0 commit comments