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: Convert org upload token to ts #3516

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

suejung-sentry
Copy link
Contributor

Description

Code Example

Notable Changes

Screenshots

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Nov 19, 2024

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
3459 4 3455 0
View the top 3 failed tests by shortest run time
src/shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx > ComparisonErrorBanner > missing head report error > renders coverage report error
Stack Traces | 1.01s run time
TestingLibraryElementError: Unable to find an element with the text: Unable to compare commits because the head commit did not upload a coverage report. THIS IS A TEST. 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="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx:90:40
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when user clicks on Generate button > when mutation is not successful > adds an error notification
Stack Traces | 1.04s run time
AssertionError: expected "spy" to be called with arguments: [ { type: 'error', …(1) } ]

Received: 



Number of calls: 0


Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:209:35runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12checkCallback node_modules/@.../dom/dist/wait-for.js:124:77Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when already has an orgUploadToken > displays the new token -encoded-
Stack Traces | 1.07s run time
TestingLibraryElementError: Unable to find an element with the text: CODECOV_TOKEN=xxxxxx. 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
  class=""
>
  <div />
</body>

Ignored nodes: comments, script, style
<body
  class=""
>
  <div />
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:266:34

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

@codecov-qa
Copy link

codecov-qa bot commented Nov 19, 2024

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
2742 4 2738 0
View the top 3 failed tests by shortest run time
src/shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx > ComparisonErrorBanner > missing head report error > renders coverage report error
Stack Traces | 1.01s run time
TestingLibraryElementError: Unable to find an element with the text: Unable to compare commits because the head commit did not upload a coverage report. THIS IS A TEST. 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="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx:90:40
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when user clicks on Generate button > when mutation is not successful > adds an error notification
Stack Traces | 1.04s run time
AssertionError: expected "spy" to be called with arguments: [ { type: 'error', …(1) } ]

Received: 



Number of calls: 0


Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:209:35runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12checkCallback node_modules/@.../dom/dist/wait-for.js:124:77Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when already has an orgUploadToken > displays the new token -encoded-
Stack Traces | 1.07s run time
TestingLibraryElementError: Unable to find an element with the text: CODECOV_TOKEN=xxxxxx. 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
  class=""
>
  <div />
</body>

Ignored nodes: comments, script, style
<body
  class=""
>
  <div />
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:266:34

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

Copy link

codecov-public-qa bot commented Nov 19, 2024

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
2742 4 2738 0
View the top 3 failed tests by shortest run time
src/shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx > ComparisonErrorBanner &gt; missing head report error &gt; renders coverage report error
Stack Traces | 1.01s run time
TestingLibraryElementError: Unable to find an element with the text: Unable to compare commits because the head commit did not upload a coverage report. THIS IS A TEST. 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;relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20&quot;
      data-testid=&quot;comparison-error-banner&quot;
      role=&quot;alert&quot;
    &gt;
      &lt;svg
        class=&quot;stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6&quot;
        data-icon=&quot;exclamationTriangle&quot;
        data-testid=&quot;exclamationTriangle&quot;
        fill=&quot;none&quot;
        stroke=&quot;currentColor&quot;
        stroke-width=&quot;1.5&quot;
        viewBox=&quot;0 0 24 24&quot;
        xmlns=&quot;http://www.w3.org/2000/svg&quot;
      &gt;
        &lt;path
          d=&quot;M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z&quot;
          stroke-linecap=&quot;round&quot;
          stroke-linejoin=&quot;round&quot;
        /&gt;
      &lt;/svg&gt;
      &lt;h5
        class=&quot;mb-1 font-semibold&quot;
      &gt;
        Missing Head Report
      &lt;/h5&gt;
      &lt;p
        class=&quot;text-sm&quot;
      &gt;
        &lt;span
          class=&quot;flex flex-wrap gap-1&quot;
        &gt;
          Unable to compare commits because the head commit did not upload a coverage report.
          &lt;a
            class=&quot;
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1&quot;
            data-cy=&quot;missingComparisonReport&quot;
            data-marketing=&quot;missingComparisonReport&quot;
            href=&quot;https://docs.codecov.com/docs/error-reference#missing-base-report&quot;
            target=&quot;_blank&quot;
          &gt;
            Learn more here
            &lt;span
              class=&quot;text-ds-gray-quinary&quot;
            &gt;
              &lt;svg
                class=&quot;w-4 h-4&quot;
                data-icon=&quot;&quot;
                data-testid=&quot;&quot;
                fill=&quot;none&quot;
                stroke=&quot;currentColor&quot;
                viewBox=&quot;0 0 24 24&quot;
                xmlns=&quot;http://www.w3.org/2000/svg&quot;
              &gt;
                &lt;path
                  d=&quot;M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14&quot;
                  stroke-linecap=&quot;round&quot;
                  stroke-linejoin=&quot;round&quot;
                  stroke-width=&quot;2&quot;
                /&gt;
              &lt;/svg&gt;
            &lt;/span&gt;
          &lt;/a&gt;
        &lt;/span&gt;
      &lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;

Ignored nodes: comments, script, style
&lt;body&gt;
  &lt;div&gt;
    &lt;div
      class=&quot;relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20&quot;
      data-testid=&quot;comparison-error-banner&quot;
      role=&quot;alert&quot;
    &gt;
      &lt;svg
        class=&quot;stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6&quot;
        data-icon=&quot;exclamationTriangle&quot;
        data-testid=&quot;exclamationTriangle&quot;
        fill=&quot;none&quot;
        stroke=&quot;currentColor&quot;
        stroke-width=&quot;1.5&quot;
        viewBox=&quot;0 0 24 24&quot;
        xmlns=&quot;http://www.w3.org/2000/svg&quot;
      &gt;
        &lt;path
          d=&quot;M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z&quot;
          stroke-linecap=&quot;round&quot;
          stroke-linejoin=&quot;round&quot;
        /&gt;
      &lt;/svg&gt;
      &lt;h5
        class=&quot;mb-1 font-semibold&quot;
      &gt;
        Missing Head Report
      &lt;/h5&gt;
      &lt;p
        class=&quot;text-sm&quot;
      &gt;
        &lt;span
          class=&quot;flex flex-wrap gap-1&quot;
        &gt;
          Unable to compare commits because the head commit did not upload a coverage report.
          &lt;a
            class=&quot;
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1&quot;
            data-cy=&quot;missingComparisonReport&quot;
            data-marketing=&quot;missingComparisonReport&quot;
            href=&quot;https://docs.codecov.com/docs/error-reference#missing-base-report&quot;
            target=&quot;_blank&quot;
          &gt;
            Learn more here
            &lt;span
              class=&quot;text-ds-gray-quinary&quot;
            &gt;
              &lt;svg
                class=&quot;w-4 h-4&quot;
                data-icon=&quot;&quot;
                data-testid=&quot;&quot;
                fill=&quot;none&quot;
                stroke=&quot;currentColor&quot;
                viewBox=&quot;0 0 24 24&quot;
                xmlns=&quot;http://www.w3.org/2000/svg&quot;
              &gt;
                &lt;path
                  d=&quot;M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14&quot;
                  stroke-linecap=&quot;round&quot;
                  stroke-linejoin=&quot;round&quot;
                  stroke-width=&quot;2&quot;
                /&gt;
              &lt;/svg&gt;
            &lt;/span&gt;
          &lt;/a&gt;
        &lt;/span&gt;
      &lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx:90:40
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken &gt; when user clicks on Generate button &gt; when mutation is not successful &gt; adds an error notification
Stack Traces | 1.04s run time
AssertionError: expected &quot;spy&quot; to be called with arguments: [ { type: &apos;error&apos;, …(1) } ]

Received: 



Number of calls: 0


Ignored nodes: comments, script, style
&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;div /&gt;
  &lt;/body&gt;
&lt;/html&gt;
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:209:35
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken &gt; when already has an orgUploadToken &gt; displays the new token -encoded-
Stack Traces | 1.07s run time
TestingLibraryElementError: Unable to find an element with the text: CODECOV_TOKEN=xxxxxx. 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
  class=&quot;&quot;
&gt;
  &lt;div /&gt;
&lt;/body&gt;

Ignored nodes: comments, script, style
&lt;body
  class=&quot;&quot;
&gt;
  &lt;div /&gt;
&lt;/body&gt;
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:266:34

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

Copy link

codecov bot commented Nov 19, 2024

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
3459 4 3455 0
View the top 3 failed tests by shortest run time
src/shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx > ComparisonErrorBanner > missing head report error > renders coverage report error
Stack Traces | 1.01s run time
TestingLibraryElementError: Unable to find an element with the text: Unable to compare commits because the head commit did not upload a coverage report. THIS IS A TEST. 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="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="relative w-full border-l-4 p-4 border-orange-500 bg-orange-100 dark:bg-opacity-20"
      data-testid="comparison-error-banner"
      role="alert"
    >
      <svg
        class="stroke-orange-500 float-left -mt-1 mr-2 align-middle w-6 h-6"
        data-icon="exclamationTriangle"
        data-testid="exclamationTriangle"
        fill="none"
        stroke="currentColor"
        stroke-width="1.5"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
          stroke-linecap="round"
          stroke-linejoin="round"
        />
      </svg>
      <h5
        class="mb-1 font-semibold"
      >
        Missing Head Report
      </h5>
      <p
        class="text-sm"
      >
        <span
          class="flex flex-wrap gap-1"
        >
          Unable to compare commits because the head commit did not upload a coverage report.
          <a
            class="
  font-sans cursor-pointer

  hover:underline

  focus:ring-2
 text-ds-blue-default inline-flex items-center gap-1"
            data-cy="missingComparisonReport"
            data-marketing="missingComparisonReport"
            href="https://docs.codecov.com/docs/error-reference#missing-base-report"
            target="_blank"
          >
            Learn more here
            <span
              class="text-ds-gray-quinary"
            >
              <svg
                class="w-4 h-4"
                data-icon=""
                data-testid=""
                fill="none"
                stroke="currentColor"
                viewBox="0 0 24 24"
                xmlns="http://www.w3.org/2000/svg"
              >
                <path
                  d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                />
              </svg>
            </span>
          </a>
        </span>
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../shared/ComparisonErrorBanner/ComparisonErrorBanner.test.tsx:90:40
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when user clicks on Generate button > when mutation is not successful > adds an error notification
Stack Traces | 1.04s run time
AssertionError: expected "spy" to be called with arguments: [ { type: 'error', …(1) } ]

Received: 



Number of calls: 0


Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:209:35runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12checkCallback node_modules/@.../dom/dist/wait-for.js:124:77Timeout.checkRealTimersCallback node_modules/@.../dom/dist/wait-for.js:118:16
src/pages/AccountSettings/tabs/OrgUploadToken/OrgUploadToken.test.jsx > OrgUploadToken > when already has an orgUploadToken > displays the new token -encoded-
Stack Traces | 1.07s run time
TestingLibraryElementError: Unable to find an element with the text: CODECOV_TOKEN=xxxxxx. 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
  class=""
>
  <div />
</body>

Ignored nodes: comments, script, style
<body
  class=""
>
  <div />
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../tabs/OrgUploadToken/OrgUploadToken.test.jsx:266:34

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

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.

1 participant