Skip to content

feat: Migrate isEnterprisePlan to GQL Field #6260

feat: Migrate isEnterprisePlan to GQL Field

feat: Migrate isEnterprisePlan to GQL Field #6260

Triggered via pull request December 12, 2024 16:35
Status Failure
Total duration 4m 45s
Artifacts

ci.yml

on: pull_request
Install deps
17s
Install deps
Build Self Hosted Image  /  Build Self Hosted App
4m 31s
Build Self Hosted Image / Build Self Hosted App
Codecov Startup  /  Codecov Startup
17s
Codecov Startup / Codecov Startup
Generate runner indexes Vitest
3s
Generate runner indexes Vitest
Run Lint
1m 24s
Run Lint
Run Type Checker
49s
Run Type Checker
Run Prettier Check
38s
Run Prettier Check
Upload Bundle Stats - Production
1m 42s
Upload Bundle Stats - Production
Upload Bundle Stats - Staging
1m 39s
Upload Bundle Stats - Staging
Run storybook
1m 53s
Run storybook
Run Fossa
13s
Run Fossa
Build Self Hosted Image  /  Push Self Hosted Image
0s
Build Self Hosted Image / Push Self Hosted Image
Build Self Hosted Image  /  Push Self Hosted Release Image
0s
Build Self Hosted Image / Push Self Hosted Release Image
Matrix: test-vitest
Push Self Hosted Image  /  Build Self Hosted App
Push Self Hosted Image / Build Self Hosted App
Build App
0s
Build App
Push Self Hosted Image  /  Push Self Hosted Image
Push Self Hosted Image / Push Self Hosted Image
Push Self Hosted Image  /  Push Self Hosted Release Image
Push Self Hosted Image / Push Self Hosted Release Image
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 13 warnings
src/pages/AccountSettings/AccountSettings.test.jsx > AccountSettings > on okta access route > renders okta access tab for enterprise users: src/pages/AccountSettings/AccountSettings.test.jsx#L374
TestingLibraryElementError: Unable to find an element with the text: OktaAccess. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="flex flex-col gap-4" > Header <div class="container flex flex-col lg:flex-row" > AccountSettingsSideMenu <div class="flex-1 pl-0 lg:pl-8" data-testid="sidebar-content" > NotFound </div> </div> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div class="flex flex-col gap-4" > Header <div class="container flex flex-col lg:flex-row" > AccountSettingsSideMenu <div class="flex-1 pl-0 lg:pl-8" data-testid="sidebar-content" > NotFound </div> </div> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/pages/AccountSettings/AccountSettings.test.jsx:374:42
src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx > AccountSettingsSideMenu > not running in self hosted mode > user is an admin > user is viewing personal settings > okta access is displayed according to the user's plan > displays okta access tab if user is on enterprise: src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx#L300
TestingLibraryElementError: Unable to find an element with the text: Okta access. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a aria-current="page" class="block p-3 hover:bg-ds-gray-quaternary/5 border-l-4 pl-2 border-ds-gray-octonary text-ds-gray-octonary font-semibold bg-ds-gray-quaternary bg-opacity-5" data-cy="accountAdmin" data-marketing="accountAdmin" href="/account/gh/codecov" > Admin </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="internalAccessTab" data-marketing="internalAccessTab" href="/account/gh/codecov/access" > Access </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="orgUploadToken" data-marketing="orgUploadToken" href="/account/gh/codecov/org-upload-token" > Global Upload Token </a> </div> </nav> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a aria-current="page" class="block p-3 hover:bg-ds-gray-quaternary/5 border-l-4 pl-2 border-ds-gray-octonary text-ds-gray-octonary font-semibold bg-ds-gray-quaternary bg-opacity-5" data-cy="accountAdmin" data-marketing="accountAdmin" href="/account/gh/codecov" > Admin </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="internalAccessTab" data-marketing="internalAccessTab" href="/account/gh/codecov/access" > Access </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="orgUploadToken" data-marketing="orgUploadToken" href="/account/gh/codecov/org-upload-token" > Global Upload Token </a> </div> </nav> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx:300:48
src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx > AccountSettingsSideMenu > not running in self hosted mode > user is an admin > user is not viewing personal settings > okta access is displayed according to the user's plan > displays okta access tab if user is on enterprise: src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx#L352
TestingLibraryElementError: Unable to find an element with the text: Okta access. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a aria-current="page" class="block p-3 hover:bg-ds-gray-quaternary/5 border-l-4 pl-2 border-ds-gray-octonary text-ds-gray-octonary font-semibold bg-ds-gray-quaternary bg-opacity-5" data-cy="accountAdmin" data-marketing="accountAdmin" href="/account/gh/codecov" > Admin </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="orgUploadToken" data-marketing="orgUploadToken" href="/account/gh/codecov/org-upload-token" > Global Upload Token </a> </div> </nav> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a aria-current="page" class="block p-3 hover:bg-ds-gray-quaternary/5 border-l-4 pl-2 border-ds-gray-octonary text-ds-gray-octonary font-semibold bg-ds-gray-quaternary bg-opacity-5" data-cy="accountAdmin" data-marketing="accountAdmin" href="/account/gh/codecov" > Admin </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="orgUploadToken" data-marketing="orgUploadToken" href="/account/gh/codecov/org-upload-token" > Global Upload Token </a> </div> </nav> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx:352:48
src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx > AccountSettingsSideMenu > not running in self hosted mode > user is not an admin > okta access is displayed according to the user's plan > displays okta access tab if user is on enterprise: src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx#L423
TestingLibraryElementError: Unable to find an element with the text: Okta access. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="internalAccessTab" data-marketing="internalAccessTab" href="/account/gh/codecov/access" > Access </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> </nav> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div> <nav class="sticky top-4 mx-4 mb-4 divide-y divide-ds-gray-tertiary overflow-hidden rounded border border-ds-gray-tertiary text-ds-gray-quinary sm:mx-0 lg:w-56" > <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="internalAccessTab" data-marketing="internalAccessTab" href="/account/gh/codecov/access" > Access </a> </div> <div> <a class="block p-3 hover:bg-ds-gray-quaternary/5" data-cy="yamlTab" data-marketing="yamlTab" href="/account/gh/codecov/yaml" > Global YAML </a> </div> </nav> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/pages/AccountSettings/AccountSettingsSideMenu.test.jsx:423:46
Test Runner #0 - Vitest
Process completed with exit code 1.
Test Runner #5 - Vitest
The job was canceled because "_0" failed.
Test Runner #5 - Vitest
The operation was canceled.
src/services/account/usePlanData.test.tsx > usePlanData > calling hook > there is plan data > returns the plan data: src/services/account/usePlanData.test.tsx#L84
AssertionError: expected { hasPrivateRepos: true, …(2) } to strictly equal { hasPrivateRepos: true, …(2) } Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received Object { "hasPrivateRepos": true, "plan": Object { "baseUnitPrice": 10, "benefits": Array [], "billingRate": "monthly", "hasSeatsLeft": true, + "isEnterprisePlan": false, "marketingName": "Users Basic", "monthlyUploadLimit": 250, "planUserCount": 1, "pretrialUsersCount": 0, "trialEndDate": "2023-01-10T08:55:25", "trialStartDate": "2023-01-01T08:55:25", "trialStatus": "ONGOING", "trialTotalDays": 0, "value": "users-basic", }, "pretrialPlan": Object { "baseUnitPrice": 10, "benefits": Array [], "billingRate": "monthly", "marketingName": "Users Basic", "monthlyUploadLimit": 250, "value": "users-basic", }, } ❯ src/services/account/usePlanData.test.tsx:84:39 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
Test Runner #5 - Vitest
Process completed with exit code 1.
Test Runner #6 - Vitest
The job was canceled because "_0" failed.
Test Runner #6 - Vitest
The operation was canceled.
Test Runner #7 - Vitest
The job was canceled because "_0" failed.
Test Runner #7 - Vitest
The operation was canceled.
Test Runner #1 - Vitest
The job was canceled because "_0" failed.
src/pages/PlanPage/subRoutes/CancelPlanPage/CancelPlanPage.test.tsx > CancelPlanPage > user is on an enterprise plan > directs them directly to plan page: src/pages/PlanPage/subRoutes/CancelPlanPage/CancelPlanPage.test.tsx#L309
AssertionError: expected '/plan/gh/codecov/cancel' to be '/plan/gh/codecov' // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <div> SpecialOffer </div> </body> </html> Expected: "/plan/gh/codecov" Received: "/plan/gh/codecov/cancel" ❯ src/pages/PlanPage/subRoutes/CancelPlanPage/CancelPlanPage.test.tsx:309:39 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
src/pages/MembersPage/MembersActivation/Activation/ChangePlanLink/ChangePlanLink.test.jsx: src/pages/MembersPage/MembersActivation/Activation/ChangePlanLink/ChangePlanLink.jsx#L252
Invariant Violation: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types ❯ checkType node_modules/prop-types/factoryWithTypeCheckers.js:183:21 ❯ src/pages/MembersPage/MembersActivation/Activation/ChangePlanLink/ChangePlanLink.jsx:252:39 ❯ src/pages/MembersPage/MembersActivation/Activation/ChangePlanLink/ChangePlanLink.test.jsx:6:31
Test Runner #1 - Vitest
The operation was canceled.
Test Runner #2 - Vitest
The job was canceled because "_0" failed.
src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradePlanPage.test.jsx > UpgradePlanPage > when rendered with an enterprise plan > redirects user to plan page: src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradePlanPage.test.jsx#L377
AssertionError: expected '/plan/gh/codecov/upgrade' to be '/plan/gh/codecov' // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="flex flex-col gap-8 md:w-11/12 md:flex-row lg:w-10/12" > <div class="h-fit border md:w-[280px]" > <h3 class="p-4 font-semibold" > Pro Team plan </h3> <hr /> <div class="flex flex-col gap-6 p-4" > <div> <p class="mb-2 text-xs font-semibold" > Pricing </p> <p class="text-xs font-semibold" > <span class="text-2xl" > $ 10 </span> per user/month </p> <p class="text-xs text-ds-gray-senary" > billed annually, or $ 12 for monthly billing </p> </div> <div> <p class="mb-2 text-xs font-semibold" > Includes </p> <ul class="flex flex-col gap-3" > <li class="flex items-center gap-1" > <span class="text-ds-pink-default" > <svg class="w-6 h-6 fill-current" data-testid="check-svg" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg" > <path d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z" /> </svg> </span> Configurable # of users </li> <li class="flex items-center gap-1" > <span class="text-ds-pink-default" > <svg class="w-6 h-6 fill-current" data-testid="check-svg" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg" > <path d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z" /> </svg> </span> Unlimited public repositories </li> <li class="flex items-center gap-1" > <span class="text-ds-pink-default" > <svg class="w-6 h-6 fill-current" data-testid="check-svg" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg" > <path d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z" /> </svg> </span> Unlimited private repositories </li> <li class="flex items-center gap-1" > <span class="text-ds-pink-default" > <svg
src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/FreePlanCard/FreePlanCard.test.jsx: src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.jsx#L18
Invariant Violation: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types ❯ object node_modules/prop-types/factoryWithTypeCheckers.js:183:21 ❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.jsx:18:3 ❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/index.js:39:31
src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.test.jsx: src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.jsx#L18
Invariant Violation: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types ❯ object node_modules/prop-types/factoryWithTypeCheckers.js:183:21 ❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.jsx:18:3 ❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/CurrentPlanCard/shared/PlanPricing/PlanPricing.test.jsx:4:31
Test Runner #2 - Vitest
The operation was canceled.
Test Runner #4 - Vitest
The job was canceled because "_0" failed.
Test Runner #4 - Vitest
The operation was canceled.
Test Runner #3 - Vitest
The job was canceled because "_0" failed.
Test Runner #3 - Vitest
The operation was canceled.
Install deps
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Generate runner indexes Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Fossa
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Codecov Startup / Codecov Startup
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Prettier Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Type Checker
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Upload Bundle Stats - Staging
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Upload Bundle Stats - Production
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run storybook
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Runner #8 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Runner #0 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build Self Hosted Image / Build Self Hosted App
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636