Skip to content

Commit 5dd2420

Browse files
committed
chore: revert-tree-to-journey
1 parent bc3da80 commit 5dd2420

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

e2e/davinci-suites/src/phone-number-field.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ test.describe('Device registration tests', () => {
106106
await expect(page.getByText('SDK Automation - Enter Phone Number')).toBeVisible();
107107
await page.getByRole('textbox', { name: 'Enter Phone Number' }).fill('3035550100');
108108
await page.getByRole('button', { name: 'Submit' }).click();
109-
await expect(
110-
async () => await expect(page.getByText('SMS/Voice MFA Registered')).toBeVisible(),
111-
).toPass();
109+
110+
await expect(page.getByText('SMS/Voice MFA Registered')).toBeVisible();
111+
112112
await page.getByRole('button', { name: 'Continue' }).click();
113113
});
114114
});

e2e/journey-app/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const searchParams = new URLSearchParams(qs);
1818

1919
const config = serverConfigs[searchParams.get('clientId') || 'basic'];
2020

21-
const tree = searchParams.get('tree') ?? 'UsernamePassword';
21+
const journeyName = searchParams.get('journey') ?? 'UsernamePassword';
2222
let requestMiddleware: RequestMiddleware[] = [];
2323

2424
if (searchParams.get('middleware') === 'true') {
@@ -55,7 +55,7 @@ if (searchParams.get('middleware') === 'true') {
5555
const formEl = document.getElementById('form') as HTMLFormElement;
5656
const journeyEl = document.getElementById('journey') as HTMLDivElement;
5757

58-
let step = await journeyClient.start({ journey: tree });
58+
let step = await journeyClient.start({ journey: journeyName });
5959

6060
function renderComplete() {
6161
if (step?.type !== 'LoginSuccess') {
@@ -79,7 +79,7 @@ if (searchParams.get('middleware') === 'true') {
7979

8080
console.log('Logout successful');
8181

82-
step = await journeyClient.start({ journey: tree });
82+
step = await journeyClient.start({ journey: journeyName });
8383

8484
renderForm();
8585
});

e2e/journey-suites/src/choice-confirm-poll.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=TEST_LoginWithMiscCallbacks&clientId=tenant');
14+
await navigate('/?journey=TEST_LoginWithMiscCallbacks&clientId=tenant');
1515

1616
const messageArray: string[] = [];
1717

@@ -22,7 +22,7 @@ test('Test happy paths on test page', async ({ page }) => {
2222
});
2323

2424
expect(page.url()).toBe(
25-
'http://localhost:5829/?tree=TEST_LoginWithMiscCallbacks&clientId=tenant',
25+
'http://localhost:5829/?journey=TEST_LoginWithMiscCallbacks&clientId=tenant',
2626
);
2727

2828
// Perform basic login

e2e/journey-suites/src/custom-paths.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { username, password } from './utils/demo-user.js';
1212
// Skipping test until AM Mock API is available that supports custom paths
1313
test.skip('Test happy paths on test page', async ({ page }) => {
1414
const { clickButton, navigate } = asyncEvents(page);
15-
await navigate('/?paths=true&tree=Login&clientId=tenant');
15+
await navigate('/?paths=true&journey=Login&clientId=tenant');
1616

1717
const messageArray: string[] = [];
1818

e2e/journey-suites/src/device-profile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test.skip('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=TEST_DeviceProfile');
14+
await navigate('/?journey=TEST_DeviceProfile');
1515

1616
const messageArray: string[] = [];
1717

e2e/journey-suites/src/email-suspend.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=TEST_LoginSuspendEmail&clientId=tenant');
14+
await navigate('/?journey=TEST_LoginSuspendEmail&clientId=tenant');
1515

1616
const messageArray: string[] = [];
1717

e2e/journey-suites/src/login.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { password, username } from './utils/demo-user.js';
1111

1212
test('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=Login');
14+
await navigate('/?journey=Login');
1515

1616
const messageArray: string[] = [];
1717

e2e/journey-suites/src/no-session.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=Login&no-session=true');
14+
await navigate('/?journey=Login&no-session=true');
1515

1616
const messageArray: string[] = [];
1717

@@ -21,7 +21,7 @@ test('Test happy paths on test page', async ({ page }) => {
2121
return Promise.resolve(true);
2222
});
2323

24-
expect(page.url()).toBe('http://localhost:5829/?tree=Login&no-session=true');
24+
expect(page.url()).toBe('http://localhost:5829/?journey=Login&no-session=true');
2525

2626
// Perform basic login
2727
await page.getByLabel('User Name').fill(username);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=TEST_OTPRegistration&clientId=tenant');
14+
await navigate('/?journey=TEST_OTPRegistration&clientId=tenant');
1515

1616
const messageArray: string[] = [];
1717

e2e/journey-suites/src/protect.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { username, password } from './utils/demo-user.js';
1111

1212
test.skip('Test happy paths on test page', async ({ page }) => {
1313
const { clickButton, navigate } = asyncEvents(page);
14-
await navigate('/?tree=TEST_Protect');
14+
await navigate('/?journey=TEST_Protect');
1515

1616
const messageArray: string[] = [];
1717

0 commit comments

Comments
 (0)