feat: new UI to clarify adding token #6231
ci.yml
on: pull_request
Install deps
16s
Build Self Hosted Image
/
Build Self Hosted App
4m 23s
Codecov Startup
/
Codecov Startup
16s
Generate runner indexes Vitest
3s
Run Lint
1m 18s
Run Type Checker
47s
Run Prettier Check
34s
Upload Bundle Stats - Production
1m 49s
Upload Bundle Stats - Staging
1m 46s
Run storybook
1m 38s
Run Fossa
15s
Build Self Hosted Image
/
Push Self Hosted Image
0s
Build Self Hosted Image
/
Push Self Hosted Release Image
0s
Matrix: test-vitest
Build App
0s
Push Self Hosted Image
/
Push Self Hosted Image
Push Self Hosted Image
/
Push Self Hosted Release Image
Annotations
8 errors and 18 warnings
src/pages/RepoPage/CoverageOnboarding/GitHubActions/TokenStep.test.tsx > TokenStepSection > shows generate button for non-admin users in disabled state:
src/pages/RepoPage/CoverageOnboarding/GitHubActions/TokenStep.test.tsx#L157
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name `/Generate/i`
Here are the accessible roles:
heading:
Name "Step 2: Select an upload token to add as a secret on GitHub":
<h3
class="font-semibold text-base"
/>
Name "Step 3: add token as organization secret":
<h3
class="font-semibold text-base"
/>
--------------------------------------------------
radiogroup:
Name "":
<div
aria-required="false"
class="flex gap-4 flex-row"
dir="ltr"
role="radiogroup"
style="outline: none;"
tabindex="0"
/>
--------------------------------------------------
radio:
Name "Global upload token":
<button
aria-checked="true"
class="relative flex-1"
data-radix-collection-item=""
data-state="checked"
data-testid="global-token-radio"
id=":rg:"
role="radio"
tabindex="-1"
type="button"
value="global"
/>
Name "Repository token":
<button
aria-checked="false"
class="relative flex-1"
data-radix-collection-item=""
data-state="unchecked"
data-testid="repo-token-radio"
id=":ri:"
role="radio"
tabindex="-1"
type="button"
value="repo"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="text-left text-ds-gray-quinary"
/>
Name "":
<p
class="text-left text-ds-gray-quinary"
/>
Name "":
<p />
Name "":
<p
class="font-normal"
/>
--------------------------------------------------
link:
Name "organization secret":
<a
class="
font-sans cursor-pointer
hover:underline
focus:ring-2
text-ds-blue-default inline-flex items-center gap-1"
data-cy="githubOrgSecrets"
data-marketing="githubOrgSecrets"
href="https://github.com/organizations/codecov/settings/secrets/actions/new"
target="_blank"
/>
--------------------------------------------------
button:
Name "Copy CODECOV_TOKEN":
<button
aria-label="Copy CODECOV_TOKEN"
data-testid="clipboard-code-snippet"
/>
Name "Copy org-upload-token":
<button
aria-label="Copy org-upload-token"
data-testid="clipboard-code-snippet"
/>
Name "Your organization secret in GitHub should look like this:":
<button
aria-controls="radix-:rk:"
aria-expanded="false"
class="flex w-full items-center justify-between p-4 text-left hover:bg-ds-gray-primary [&_#expandable-icon]:data-[state=open]:rotate-180"
data-state="closed"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
class="light"
>
<div>
<div
class="border border-ds-gray-secondary bg-ds-container"
>
<div
class="border-b border-ds-gray-secondary p-5"
>
<h3
class="font-semibold text-base"
>
Step 2: Select an upload token to add as a secret on GitHub
</h3>
</div>
<div
class="m-5 flex flex-col gap-4"
>
<div>
<div
aria-required="false"
class="flex gap-4 flex-row"
dir="ltr"
role="radiogroup"
style="outline: none;"
tabindex="0"
>
<button
aria-checked="true"
class="relative flex-1"
data-radix-collection-item=""
data-state="checked"
data-testid="global-token-radio"
id=":rg:"
role="radio"
tabindex="-1"
type="button"
value="global"
>
<div
class="flex h-full flex-col justify-center gap-2 rounded-md border border-ds-gray-quaternary p-4"
>
<div
class="relative flex items-center justify-between gap-4"
>
<label
class="text-left font-medium"
for=":rg:"
>
Global upload token
</label>
|
src/pages/RepoPage/CoverageOnboarding/GitHubActions/TokenStep.test.tsx > TokenStepSection > shows step 3 add token step when org token is generated:
src/pages/RepoPage/CoverageOnboarding/GitHubActions/TokenStep.test.tsx#L193
TestingLibraryElementError: Unable to find role="button" and name `/Generate/i`
Ignored nodes: comments, script, style
<body
class="light"
>
<div>
<div
class="border border-ds-gray-secondary bg-ds-container"
>
<div
class="border-b border-ds-gray-secondary p-5"
>
<h3
class="font-semibold text-base"
>
Step 2: Select an upload token to add as a secret on GitHub
</h3>
</div>
<div
class="m-5 flex flex-col gap-4"
>
<div>
<div
aria-required="false"
class="flex gap-4 flex-row"
dir="ltr"
role="radiogroup"
style="outline: none;"
tabindex="0"
>
<button
aria-checked="true"
class="relative flex-1"
data-radix-collection-item=""
data-state="checked"
data-testid="global-token-radio"
id=":ru:"
role="radio"
tabindex="-1"
type="button"
value="global"
>
<div
class="flex h-full flex-col justify-center gap-2 rounded-md border border-ds-gray-quaternary p-4"
>
<div
class="relative flex items-center justify-between gap-4"
>
<label
class="text-left font-medium"
for=":ru:"
>
Global upload token
</label>
<div
class="size-4 flex-none rounded-full border border-ds-gray-quaternary"
data-testid="radio-button-circle-unselected"
/>
<span
class="absolute right-0"
data-state="checked"
>
<div
class="flex size-4 items-center justify-center rounded-full bg-ds-blue-darker"
>
<div
class="size-1 rounded-full bg-ds-container"
data-testid="radio-button-circle-selected"
/>
</div>
</span>
</div>
<p
class="text-left text-ds-gray-quinary"
>
Use it for uploading coverage reports across all your organization's repositories.
</p>
</div>
<span
class="absolute right-0 top-0 size-full rounded-md border-2 border-ds-blue-darker"
data-state="checked"
/>
</button>
<button
aria-checked="false"
class="relative flex-1"
data-radix-collection-item=""
data-state="unchecked"
data-testid="repo-token-radio"
id=":r10:"
role="radio"
tabindex="-1"
type="button"
value="repo"
>
<div
class="flex h-full flex-col justify-center gap-2 rounded-md border border-ds-gray-quaternary p-4"
>
<div
class="relative flex items-center justify-between gap-4"
>
<label
class="text-left font-medium"
for=":r10:"
>
Repository token
</label>
<div
class="size-4 flex-none rounded-full border border-ds-gray-quaternary"
data-testid="radio-button-circle-unselected"
/>
</div>
<p
class="text-left text-ds-gray-quinary"
>
Use it for uploading coverage reports in the enigma repository.
</p>
</div>
</button>
</div>
</div>
</div>
</div>
<div
|
src/pages/RepoPage/CoverageTab/OverviewTab/OverviewTab.test.tsx > Coverage overview tab > renders the coverage area chart:
src/pages/RepoPage/CoverageTab/OverviewTab/OverviewTab.test.tsx#L456
TestingLibraryElementError: Unable to find an element by: [data-testid="chart-container"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="mx-4 flex flex-col gap-4 divide-y border-solid border-ds-gray-secondary pt-4 sm:mx-0"
>
Summary
<div
class="flex flex-col"
>
<div
class="hidden lg:block"
>
<div
class="flex items-center justify-between py-4"
>
<button
class="flex cursor-pointer items-center text-ds-secondary-text hover:underline [&[data-state=open]>span:first-child]:rotate-90"
data-cy="toggle-chart"
data-marketing="toggle-chart"
data-state="open"
>
<span
class="transition-transform duration-200"
>
<svg
class="w-6 h-6"
data-icon=""
data-testid=""
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
fill-rule="evenodd"
/>
</svg>
</span>
Hide charts
</button>
</div>
<div
class=""
data-testid="toggle-element-contents"
>
<div
class="mt-2 grid grid-cols-12 gap-4 pl-4"
>
<div
class="inline-table col-span-9"
/>
<div
class="sticky top-32 col-span-3 flex aspect-square flex-col justify-center gap-4 px-8 py-4"
>
Sunburst
</div>
</div>
</div>
</div>
<div
class="flex items-center justify-center py-16"
>
<svg
class="size-3 animate-spin"
data-testid="spinner"
fill="none"
role="presentation"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<circle
class="opacity-25"
cx="12"
cy="12"
r="10"
stroke="currentColor"
stroke-width="4"
/>
<path
class="opacity-75"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<body>
<div>
<div
class="mx-4 flex flex-col gap-4 divide-y border-solid border-ds-gray-secondary pt-4 sm:mx-0"
>
Summary
<div
class="flex flex-col"
>
<div
class="hidden lg:block"
>
<div
class="flex items-center justify-between py-4"
>
<button
class="flex cursor-pointer items-center text-ds-secondary-text hover:underline [&[data-state=open]>span:first-child]:rotate-90"
data-cy="toggle-chart"
data-marketing="toggle-chart"
data-state="open"
>
<span
class="transition-transform duration-200"
>
<svg
class="w-6 h-6"
data-icon=""
data-testid=""
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
fill-rule="evenodd"
|
Test Runner #4 - Vitest
Process completed with exit code 1.
|
Test Runner #3 - Vitest
The job was canceled because "_4" failed.
|
Test Runner #3 - Vitest
The operation was canceled.
|
Test Runner #1 - Vitest
The job was canceled because "_4" failed.
|
Test Runner #1 - 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
|
Run storybook
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
|
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 #7 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Runner #6 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Runner #5 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Runner #4 - Vitest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Runner #2 - 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
|