Skip to content

feat: Improved AuthProvider #153

feat: Improved AuthProvider

feat: Improved AuthProvider #153

Triggered via pull request December 30, 2024 11:32
Status Failure
Total duration 45s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

32 errors and 1 warning
tests/github.test.tsx > GiHub Complete Flow > should complete the flow: tests/github.test.tsx#L356
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:356:35
tests/github.test.tsx > GiHub Complete Flow > should call without value for the props: tests/github.test.tsx#L391
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:391:23
tests/github.test.tsx > GiHub Complete Flow > should display Error message for invalid status of the repo: tests/github.test.tsx#L405
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:405:35
tests/github.test.tsx > GiHub Complete Flow > should work with inactive argument: tests/github.test.tsx#L441
AssertionError: expected '\n' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: " " ❯ tests/github.test.tsx:441:35
tests/components/AuthProvider.test.tsx > AuthProvider > should display error message if loading token fails: tests/components/AuthProvider.test.tsx#L37
AssertionError: expected '\n' to contain 'Failed to load token' - Expected + Received - Failed to load token + + ❯ tests/components/AuthProvider.test.tsx:37:23
tests/components/AuthProvider.test.tsx > AuthProvider > should display children when token is loaded successfully: tests/components/AuthProvider.test.tsx#L50
AssertionError: expected 'Loading Token' to contain 'Child Component' Expected: "Child Component" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:50:23
tests/components/AuthProvider.test.tsx > AuthProvider > should use the auth context successfully: tests/components/AuthProvider.test.tsx#L67
AssertionError: expected 'Loading Token' to contain 'mocked-token' Expected: "mocked-token" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:67:23
tests/components/PDPCommand.test.tsx > PDP Component > should render the PDP component with auth token: tests/components/PDPCommand.test.tsx#L23
AssertionError: expected 'Loading Token' to match 'Run the following command from your t…' Expected: "Run the following command from your terminal:" Received: "Loading Token" ❯ tests/components/PDPCommand.test.tsx:23:35
tests/components/PDPCommand.test.tsx > PDP Component > should render the Spinner: tests/components/PDPCommand.test.tsx#L35
AssertionError: expected '\n' to match 'Loading command' - Expected + Received - Loading command + + ❯ tests/components/PDPCommand.test.tsx:35:35
build (18.x)
Process completed with exit code 1.
build (20.x)
The job was canceled because "_18_x" failed.
tests/github.test.tsx > GiHub Complete Flow > should complete the flow: tests/github.test.tsx#L356
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:356:35
tests/github.test.tsx > GiHub Complete Flow > should call without value for the props: tests/github.test.tsx#L391
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:391:23
tests/github.test.tsx > GiHub Complete Flow > should display Error message for invalid status of the repo: tests/github.test.tsx#L405
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:405:35
tests/github.test.tsx > GiHub Complete Flow > should work with inactive argument: tests/github.test.tsx#L441
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:441:35
tests/components/AuthProvider.test.tsx > AuthProvider > should display error message if loading token fails: tests/components/AuthProvider.test.tsx#L37
AssertionError: expected '\n' to contain 'Failed to load token' - Expected + Received - Failed to load token + + ❯ tests/components/AuthProvider.test.tsx:37:23
tests/components/AuthProvider.test.tsx > AuthProvider > should display children when token is loaded successfully: tests/components/AuthProvider.test.tsx#L50
AssertionError: expected 'Loading Token' to contain 'Child Component' Expected: "Child Component" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:50:23
tests/components/AuthProvider.test.tsx > AuthProvider > should use the auth context successfully: tests/components/AuthProvider.test.tsx#L67
AssertionError: expected 'Loading Token' to contain 'mocked-token' Expected: "mocked-token" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:67:23
tests/components/PDPCommand.test.tsx > PDP Component > should render the PDP component with auth token: tests/components/PDPCommand.test.tsx#L23
AssertionError: expected 'Loading Token' to match 'Run the following command from your t…' Expected: "Run the following command from your terminal:" Received: "Loading Token" ❯ tests/components/PDPCommand.test.tsx:23:35
tests/components/PDPCommand.test.tsx > PDP Component > should render the Spinner: tests/components/PDPCommand.test.tsx#L35
AssertionError: expected '\n' to match 'Loading command' - Expected + Received - Loading command + + ❯ tests/components/PDPCommand.test.tsx:35:35
build (20.x)
The operation was canceled.
build (22.x)
The job was canceled because "_18_x" failed.
tests/github.test.tsx > GiHub Complete Flow > should complete the flow: tests/github.test.tsx#L356
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:356:35
tests/github.test.tsx > GiHub Complete Flow > should call without value for the props: tests/github.test.tsx#L391
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:391:23
tests/github.test.tsx > GiHub Complete Flow > should display Error message for invalid status of the repo: tests/github.test.tsx#L405
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:405:35
tests/github.test.tsx > GiHub Complete Flow > should work with inactive argument: tests/github.test.tsx#L441
AssertionError: expected 'Loading Token' to match /GitOps Configuration Wizard - GitHub/ - Expected: /GitOps Configuration Wizard - GitHub/ + Received: "Loading Token" ❯ tests/github.test.tsx:441:35
tests/components/AuthProvider.test.tsx > AuthProvider > should display error message if loading token fails: tests/components/AuthProvider.test.tsx#L37
AssertionError: expected '\n' to contain 'Failed to load token' - Expected + Received - Failed to load token + + ❯ tests/components/AuthProvider.test.tsx:37:23
tests/components/AuthProvider.test.tsx > AuthProvider > should display children when token is loaded successfully: tests/components/AuthProvider.test.tsx#L50
AssertionError: expected 'Loading Token' to contain 'Child Component' Expected: "Child Component" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:50:23
tests/components/AuthProvider.test.tsx > AuthProvider > should use the auth context successfully: tests/components/AuthProvider.test.tsx#L67
AssertionError: expected 'Loading Token' to contain 'mocked-token' Expected: "mocked-token" Received: "Loading Token" ❯ tests/components/AuthProvider.test.tsx:67:23
tests/components/PDPCommand.test.tsx > PDP Component > should render the PDP component with auth token: tests/components/PDPCommand.test.tsx#L23
AssertionError: expected 'Loading Token' to match 'Run the following command from your t…' Expected: "Run the following command from your terminal:" Received: "Loading Token" ❯ tests/components/PDPCommand.test.tsx:23:35
tests/components/PDPCommand.test.tsx > PDP Component > should render the Spinner: tests/components/PDPCommand.test.tsx#L35
AssertionError: expected '\n' to match 'Loading command' - Expected + Received - Loading command + + ❯ tests/components/PDPCommand.test.tsx:35:35
build (22.x)
The operation was canceled.
build (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636