feat: Cut over to Stripe PaymentElement #6701
Annotations
4 errors and 1 warning
Run tests:
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx#L276
AssertionError: expected "spy" to be called at least once
❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx:276:37
|
Run tests:
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx#L325
TestingLibraryElementError: Unable to find an element with the text: not rich enough. 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="light"
>
<div>
<div
class="flex flex-col gap-2 border-t p-4"
>
<div
class="flex justify-between"
>
<h4
class="font-semibold"
>
Payment method
</h4>
</div>
<form
aria-label="form"
>
<div
class="flex flex-col gap-3"
>
<div
class="mt-2 flex flex-col gap-2"
>
PaymentElement
<p
class="mt-1 text-ds-primary-red"
/>
<div
class="mb-8 mt-4 flex gap-1"
>
<button
class="
flex items-center gap-1
rounded py-1 px-4
transition-colors duration-150 motion-reduce:transition-none
focus:outline-none focus:ring
disabled:cursor-not-allowed
disabled:text-ds-gray-quaternary disabled:border-ds-gray-tertiary disabled:bg-ds-gray-primary
justify-center font-semibold
text-white bg-ds-blue-darker dark:bg-ds-blue-nonary border-ds-blue-quinary
border-solid border shadow
hover:bg-ds-blue-quinary
"
data-cy="update-payment-method"
data-marketing="update-payment-method"
data-testid="update-payment-method"
type="submit"
>
Save
</button>
<button
class="
flex items-center gap-1
rounded py-1 px-4
transition-colors duration-150 motion-reduce:transition-none
focus:outline-none focus:ring
disabled:cursor-not-allowed
disabled:text-ds-gray-quaternary disabled:border-ds-gray-tertiary disabled:bg-ds-gray-primary
justify-center font-semibold
text-ds-gray-quaternary
hover:text-ds-gray-octonary
focus:ring-0
"
data-cy="cancel-payment"
data-marketing="cancel-payment"
data-testid="cancel-payment"
type="button"
>
Cancel
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx:325:21
|
Run tests:
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx#L346
Error: expect(element).toBeDisabled()
Received element is not disabled:
<button
class="
flex items-center gap-1
rounded py-1 px-4
transition-colors duration-150 motion-reduce:transition-none·
focus:outline-none focus:ring·
disabled:cursor-not-allowed·
disabled:text-ds-gray-quaternary disabled:border-ds-gray-tertiary disabled:bg-ds-gray-primary·
justify-center font-semibold
text-white bg-ds-blue-darker dark:bg-ds-blue-nonary border-ds-blue-quinary
border-solid border shadow·
hover:bg-ds-blue-quinary
"
data-cy="update-payment-method"
data-marketing="update-payment-method"
data-testid="update-payment-method"
type="submit"
/>
❯ src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/PaymentCard.test.jsx:346:59
|
Run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading