Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Discouraged 'networkidle' Calls #265

Closed
wants to merge 3 commits into from

Use 'load'

4caf545
Select commit
Loading
Failed to load commit list.
Closed

Remove Discouraged 'networkidle' Calls #265

Use 'load'
4caf545
Select commit
Loading
Failed to load commit list.
Azure Pipelines / iTwin.auth-clients Integration failed Oct 28, 2024 in 5m 58s

Build #20241028.3 had test failures

Details

Tests

  • Failed: 3 (9.09%, 0 new, 3 recurring)
  • Passed: 30 (90.91%)
  • Other: 0 (0.00%)
  • Total: 33

Annotations

Check failure on line 195 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Build log #L195

Bash exited with code '1'.

Check failure on line 95 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Build log #L95

Bash exited with code '1'.

Check failure on line 94 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Build log #L94

Cmd.exe exited with code '1'.

Check failure on line 1 in Sign in (#integration) › failure with invalid Bentley federated user

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Sign in (#integration) › failure with invalid Bentley federated user

basic.test.ts:46:7 failure with invalid Bentley federated user
Raw output
  src/test-integration/basic.test.ts:46:7 › Sign in (#integration) › failure with invalid Bentley federated user 

    Test timeout of 60000ms exceeded.

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

Check failure on line 1 in Sign in (#integration) › failure with invalid Bentley federated user

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Sign in (#integration) › failure with invalid Bentley federated user

basic.test.ts:46:7 failure with invalid Bentley federated user
Raw output
  src/test-integration/basic.test.ts:46:7 › Sign in (#integration) › failure with invalid Bentley federated user 

    Error: expect(received).rejects.toThrowError(expected)

    Expected substring: "Failed OIDC signin for [email protected].
    Error: This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin."
    Received message:   "Failed OIDC signin for [email protected].
    Error: page.$: Execution context was destroyed, most likely because of a navigation"

          74 |     } catch (err) {
          75 |       controller.abort();
        > 76 |       throw new Error(`Failed OIDC signin for ${context.user.email}.\n${err}`);
             |             ^
          77 |     }
          78 |
          79 |     try {

          at Object.automatedSignIn (src/SignInAutomation.ts:76:13)
          at TestBrowserAuthorizationClient.signIn (src/TestBrowserAuthorizationClient.ts:131:5)
          at TestBrowserAuthorizationClient.getAccessToken (src/TestBrowserAuthorizationClient.ts:80:9)
          at src/test-integration/basic.test.ts:47:5
          at ../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:345:9
          at TestInfoImpl._runAndFailOnError (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/testInfo.js:182:7)
          at ../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:341:7
          at TimeoutRunner.run (../../node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/utils/timeoutRunner.js:49:14)
          at TimeoutManager.runWithTimeout (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/timeoutManager.js:74:7)
          at TestInfoImpl._runWithTimeout (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/testInfo.js:169:26)
          at WorkerMain._runTest (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:280:5)
          at WorkerMain.runTestGroup (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:204:11)
          at process.<anonymous> (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/common/process.js:96:22)

      47 |     await expect(
      48 |       getTestAccessToken(oidcConfig, TestUsers.federatedInvalid),
    > 49 |     ).rejects.toThrowError(
         |               ^
      50 |       `Failed OIDC signin for ${TestUsers.federatedInvalid.email}.\nError: This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin.`,
      51 |     );
      52 |   });

        at /Users/runner/work/1/s/packages/oidc-signin-tool/src/test-integration/basic.test.ts:49:15

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user/test-failed-2.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #3: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user/test-failed-3.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

Check failure on line 1 in Sign in (#integration) › failure with invalid Bentley federated user

See this annotation in the file changed.

@azure-pipelines azure-pipelines / iTwin.auth-clients Integration

Sign in (#integration) › failure with invalid Bentley federated user

basic.test.ts:46:7 failure with invalid Bentley federated user
Raw output
  src\test-integration\basic.test.ts:46:7 › Sign in (#integration) › failure with invalid Bentley federated user 

    Error: expect(received).rejects.toThrowError(expected)

    Expected substring: "Failed OIDC signin for [email protected].
    Error: This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin."
    Received message:   "Failed OIDC signin for [email protected].
    Error: page.$: Execution context was destroyed, most likely because of a navigation"

          74 |     } catch (err) {
          75 |       controller.abort();
        > 76 |       throw new Error(`Failed OIDC signin for ${context.user.email}.\n${err}`);
             |             ^
          77 |     }
          78 |
          79 |     try {

          at Object.automatedSignIn (src/SignInAutomation.ts:76:13)
          at TestBrowserAuthorizationClient.signIn (src/TestBrowserAuthorizationClient.ts:131:5)
          at TestBrowserAuthorizationClient.getAccessToken (src/TestBrowserAuthorizationClient.ts:80:9)
          at src/test-integration/basic.test.ts:47:5
          at ../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:345:9
          at TestInfoImpl._runAndFailOnError (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/testInfo.js:182:7)
          at ../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:341:7
          at TimeoutRunner.run (../../node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/utils/timeoutRunner.js:49:14)
          at TimeoutManager.runWithTimeout (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/timeoutManager.js:74:7)
          at TestInfoImpl._runWithTimeout (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/testInfo.js:169:26)
          at WorkerMain._runTest (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:280:5)
          at WorkerMain.runTestGroup (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/worker/workerMain.js:204:11)
          at process.<anonymous> (../../node_modules/.pnpm/[email protected]/node_modules/playwright/lib/common/process.js:96:22)

      47 |     await expect(
      48 |       getTestAccessToken(oidcConfig, TestUsers.federatedInvalid),
    > 49 |     ).rejects.toThrowError(
         |               ^
      50 |       `Failed OIDC signin for ${TestUsers.federatedInvalid.email}.\nError: This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin.`,
      51 |     );
      52 |   });

        at D:\a\1\s\packages\oidc-signin-tool\src\test-integration\basic.test.ts:49:15

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results\src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user\test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results\src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user\test-failed-2.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #3: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results\src-test-integration-basic-Sign-in-integration-failure-with-invalid-Bentley-federated-user\test-failed-3.png
    ────────────────────────────────────────────────────────────────────────────────────────────────