Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions e2e/tests/externalopenid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test.describe('External OIDC.', () => {
expect(client.clientID).toBeDefined();
expect(client.clientSecret).toBeDefined();
await waitForBase(page);
const oidcLoginButton = await page.getByTestId('login-oidc');
const oidcLoginButton = page.getByTestId('login-oidc');
expect(oidcLoginButton).not.toBeNull();
expect(await oidcLoginButton.textContent()).toBe(`Sign in with ${client.name}`);
await oidcLoginButton.click();
Expand All @@ -74,8 +74,11 @@ test.describe('External OIDC.', () => {
await waitForBase(page);
await page.goto(testsConfig.ENROLLMENT_URL);
await waitForPromise(2000);
await page.getByTestId('select-enrollment').click();
await page.getByTestId('login-oidc').click();
await page.getByTestId('start-enrollment').click();
const oidcLoginButton = page.locator('button.oidc-button');
expect(oidcLoginButton).not.toBeNull();
expect(await oidcLoginButton.textContent()).toBe(`Sign in with ${client.name}`);
await oidcLoginButton.click();
await page.getByTestId('login-form-username').fill(testUser.username);
await page.getByTestId('login-form-password').fill(testUser.password);
await page.getByTestId('login-form-submit').click();
Expand Down