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

chore: Update pages/RepoPage/ConfigTab tests to Vitest #3332

Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates all of the tests in the pages/RepoPage/ConfigTab to Vitest.

Copy link

codecov bot commented Sep 27, 2024

Bundle Report

Changes will increase total bundle size by 17 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-array-push 6.07MB 17 bytes (0.0%) ⬆️

@codecov-staging
Copy link

codecov-staging bot commented Sep 27, 2024

Bundle Report

Changes will increase total bundle size by 17 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-array-push 6.07MB 17 bytes (0.0%) ⬆️

@codecov-staging
Copy link

codecov-staging bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3332      +/-   ##
==========================================
- Coverage   98.41%   98.39%   -0.02%     
==========================================
  Files         807      806       -1     
  Lines       14117    14116       -1     
  Branches     3940     3940              
==========================================
- Hits        13893    13890       -3     
- Misses        213      215       +2     
  Partials       11       11              
Files with missing lines Coverage Δ
...Tokens/StaticAnalysisToken/StaticAnalysisToken.jsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 98.49% <ø> (ø)
Pages 98.09% <100.00%> (-0.03%) ⬇️
Services 99.18% <ø> (ø)
Shared 99.05% <ø> (ø)
UI 97.97% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30a38a2...3aa9556. Read the comment docs.

Copy link

codecov-public-qa bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.39%. Comparing base (30a38a2) to head (3aa9556).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3332      +/-   ##
==========================================
- Coverage   98.41%   98.39%   -0.02%     
==========================================
  Files         807      806       -1     
  Lines       14117    14116       -1     
  Branches     3991     4019      +28     
==========================================
- Hits        13893    13890       -3     
- Misses        213      215       +2     
  Partials       11       11              
Files Coverage Δ
...Tokens/StaticAnalysisToken/StaticAnalysisToken.jsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 98.49% <ø> (ø)
Pages 98.09% <100.00%> (-0.03%) ⬇️
Services 99.18% <ø> (ø)
Shared 99.05% <ø> (ø)
UI 97.97% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30a38a2...3aa9556. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.39%. Comparing base (30a38a2) to head (3aa9556).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3332      +/-   ##
==========================================
- Coverage   98.41%   98.39%   -0.02%     
==========================================
  Files         807      806       -1     
  Lines       14117    14116       -1     
  Branches     3991     3940      -51     
==========================================
- Hits        13893    13890       -3     
- Misses        213      215       +2     
  Partials       11       11              
Files with missing lines Coverage Δ
...Tokens/StaticAnalysisToken/StaticAnalysisToken.jsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 98.49% <ø> (ø)
Pages 98.09% <100.00%> (-0.03%) ⬇️
Services 99.18% <ø> (ø)
Shared 99.05% <ø> (ø)
UI 97.97% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30a38a2...3aa9556. Read the comment docs.

Copy link

codecov bot commented Oct 2, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5432 1 5431 0
View the top 1 failed tests by shortest run time
FailedTestsTable renders table body renders the first element FailedTestsTable renders table body renders the first element
Stack Traces | 1.04s run time
Error: Unable to find an element with the text: over 1 year ago. 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
&lt;body&gt;
  &lt;div&gt;
    &lt;div
      class=&quot;tableui&quot;
    &gt;
      &lt;table&gt;
        &lt;colgroup&gt;
          &lt;col
            class=&quot;w-full @sm/table:w-5/12&quot;
          /&gt;
          &lt;col
            class=&quot;@sm/table:w-1/12&quot;
          /&gt;
          &lt;col
            class=&quot;@sm/table:w-1/12&quot;
          /&gt;
          &lt;col
            class=&quot;@sm/table:w-1/12&quot;
          /&gt;
          &lt;col
            class=&quot;@sm/table:w-1/12&quot;
          /&gt;
        &lt;/colgroup&gt;
        &lt;thead&gt;
          &lt;tr&gt;
            &lt;th
              data-sortable=&quot;true&quot;
            &gt;
              &lt;div
                class=&quot;flex gap-1&quot;
              &gt;
                Test name
                &lt;span
                  class=&quot;text-ds-blue-darker group-hover/columnheader:opacity-100&quot;
                  data-sort-direction=&quot;false&quot;
                &gt;
                  &lt;svg
                    class=&quot;w-4 h-4&quot;
                    data-icon=&quot;&quot;
                    data-testid=&quot;&quot;
                  &gt;
                    arrow-up.svg
                  &lt;/svg&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/th&gt;
            &lt;th
              data-sortable=&quot;true&quot;
            &gt;
              &lt;div
                class=&quot;flex gap-1 flex-row-reverse&quot;
              &gt;
                Average duration
                &lt;span
                  class=&quot;text-ds-blue-darker group-hover/columnheader:opacity-100&quot;
                  data-sort-direction=&quot;false&quot;
                &gt;
                  &lt;svg
                    class=&quot;w-4 h-4&quot;
                    data-icon=&quot;&quot;
                    data-testid=&quot;&quot;
                  &gt;
                    arrow-up.svg
                  &lt;/svg&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/th&gt;
            &lt;th
              data-sortable=&quot;true&quot;
            &gt;
              &lt;div
                class=&quot;flex gap-1 flex-row-reverse&quot;
              &gt;
                Failure rate
                &lt;span
                  class=&quot;text-ds-blue-darker group-hover/columnheader:opacity-100&quot;
                  data-sort-direction=&quot;false&quot;
                &gt;
                  &lt;svg
                    class=&quot;w-4 h-4&quot;
                    data-icon=&quot;&quot;
                    data-testid=&quot;&quot;
                  &gt;
                    arrow-up.svg
                  &lt;/svg&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/th&gt;
            &lt;th
              data-sortable=&quot;true&quot;
            &gt;
              &lt;div
                class=&quot;flex gap-1 flex-row-reverse&quot;
              &gt;
                Commits failed
                &lt;span
                  class=&quot;text-ds-blue-darker group-hover/columnheader:opacity-100&quot;
                  data-sort-direction=&quot;desc&quot;
                &gt;
                  &lt;svg
                    class=&quot;w-4 h-4&quot;
                    data-icon=&quot;&quot;
                    data-testid=&quot;&quot;
                  &gt;
                    arrow-up.svg
                  &lt;/svg&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/th&gt;
            &lt;th
              data-sortable=&quot;true&quot;
            &gt;
              &lt;div
                class=&quot;flex gap-1&quot;
              &gt;
                Last run
                &lt;span
                  class=&quot;text-ds-blue-darker group-hover/columnheader:opacity-100&quot;
                  data-sort-direction=&quot;false&quot;
                &gt;
                  &lt;svg
                    class=&quot;w-4 h-4&quot;
                    data-icon=&quot;&quot;
                    data-testid=&quot;&quot;
                  &gt;
                    arrow-up.svg
                  &lt;/svg&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
          &lt;tr&gt;
            &lt;td
              class=&quot;max-w-1 break-words&quot;
            &gt;
              test-2
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              20.000s
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              20.00%
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              2
            &lt;/td&gt;
            &lt;td
              class=&quot;&quot;
            &gt;
              almost 2 years ago
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td
              class=&quot;max-w-1 break-words&quot;
            &gt;
              test-1
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              10.000s
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              10.00%
            &lt;/td&gt;
            &lt;td
              class=&quot;text-right&quot;
              data-type=&quot;numeric&quot;
            &gt;
              1
            &lt;/td&gt;
            &lt;td
              class=&quot;&quot;
            &gt;
              almost 2 years ago
            &lt;/td&gt;
          &lt;/tr&gt;
        &lt;/tbody&gt;
      &lt;/table&gt;
    &lt;/div&gt;
    &lt;span
      class=&quot;invisible relative top-[-65px] block leading-[0]&quot;
    &gt;
      Loading
    &lt;/span&gt;
  &lt;/div&gt;
&lt;/body&gt;
    at waitForWrapper (.../gazebo/gazebo/node_modules/@.../dom/dist/wait-for.js:163:27)
    at findAllByText (.../gazebo/gazebo/node_modules/@.../dom/dist/query-helpers.js:86:32)
    at Object.&lt;anonymous&gt; (.../FailedTestsTab/FailedTestsTable/FailedTestsTable.spec.tsx:205:42)

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Oct 2, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
2f96905 Wed, 02 Oct 2024 11:52:28 GMT Expired Expired
3aa9556 Wed, 02 Oct 2024 13:28:57 GMT Cloud Enterprise

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 4218716 Oct 2, 2024
53 of 56 checks passed
@nicholas-codecov nicholas-codecov deleted the chore-update-pages-repo-page-config-tab-tests-to-vitest branch October 2, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants