Skip to content

Occasionally failing e2e test checking auth. page with SSO #357

Open
@odockal

Description

there is occasional failure on the e2e test verifying auth. page. Happening on Windows.

   1) [chromium] › tests\src\sso-extension.spec.ts:100:5 › Red Hat Authentication extension verification › Red Hat Authentication extension installation › SSO provider is available in Authentication Page 

    Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)

    Locator: getByRole('region', { name: 'Authentication' }).getByRole('region', { name: 'Content' }).getByRole('list').getByRole('listitem', { name: 'Red Hat SSO' }).getByLabel('Provider Information').getByLabel('Provider Name')
    Expected string: "Red Hat SSO"
    Received: <element(s) not found>
    Call log:
      - expect.toHaveText with timeout 5000ms
      - waiting for getByRole('region', { name: 'Authentication' }).getByRole('region', { name: 'Content' }).getByRole('list').getByRole('listitem', { name: 'Red Hat SSO' }).getByLabel('Provider Information').getByLabel('Provider Name')


      103 |       await playExpect(authPage.heading).toHaveText('Authentication');
      104 |       const provider = authPage.getProvider(authProviderName);
    > 105 |       await playExpect(provider.getByLabel('Provider Information').getByLabel('Provider Name')).toHaveText(authProviderName);
          |                                                                                                 ^
      106 |       await playExpect(provider.getByLabel('Provider Information').getByLabel('Provider Status')).toHaveText('Logged out');
      107 |       await playExpect(provider.getByLabel('Provider Actions').getByRole('button')).toContainText('Sign in');
      108 |     });

        at C:\Users\rhqp\pd-e2e\podman-desktop-redhat-account-ext\tests\src\sso-extension.spec.ts:105:97

  1 failed
    [chromium] › tests\src\sso-extension.spec.ts:100:5 › Red Hat Authentication extension verification › Red Hat Authentication extension installation › SSO provider is available in Authentication Page 

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions