Skip to content

Commit d12a102

Browse files
authored
Merge pull request #435 from ForgeRock/fix-e2e-test
chore: fix-e2e
2 parents 259746b + a05e27a commit d12a102

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

e2e/oidc-suites/src/token.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ test.describe('PingAM tokens', () => {
7575
await page.getByRole('textbox', { name: 'Password' }).fill(pingAmPassword);
7676
await page.getByRole('button', { name: 'Next' }).click();
7777

78-
await page.waitForURL('http://localhost:8443/ping-am/**', { waitUntil: 'networkidle' });
79-
expect(page.url()).toContain('code');
80-
expect(page.url()).toContain('state');
78+
await page.waitForURL('http://localhost:8443/ping-am/**');
8179

8280
await expect(page.locator('#accessToken-0')).not.toBeEmpty();
8381

82+
expect(page.url()).toContain('code');
83+
expect(page.url()).toContain('state');
84+
8485
await page.getByRole('button', { name: 'Revoke Token' }).click();
8586
await expect(page.getByText('Token successfully revoked')).toBeVisible();
8687
const token = await page.evaluate(() => localStorage.getItem('pic-oidcTokens'));

0 commit comments

Comments
 (0)