Fixed tests for stripe (#2177)
This commit is contained in:
parent
683527ebe9
commit
067148bc70
2 changed files with 9 additions and 1 deletions
2
.github/workflows/tests-nightly.yml
vendored
2
.github/workflows/tests-nightly.yml
vendored
|
@ -171,6 +171,8 @@ jobs:
|
|||
CYPRESS_SECOND_USER_NAME: ${{ secrets.CYPRESS_SECOND_USER_NAME }}
|
||||
CYPRESS_USER_PASSWORD: ${{ secrets.CYPRESS_USER_PASSWORD }}
|
||||
CYPRESS_PERMISSIONS_USERS_PASSWORD: ${{ secrets.CYPRESS_PERMISSIONS_USERS_PASSWORD }}
|
||||
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
|
||||
STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }}
|
||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CYPRESS_mailHogUrl: ${{ secrets.CYPRESS_MAILHOG }}
|
||||
|
|
|
@ -8,11 +8,15 @@ import {
|
|||
} from "../../../support/api/requests/Checkout";
|
||||
import { getOrder } from "../../../support/api/requests/Order";
|
||||
import { confirmThreeDSecure } from "../../../support/api/requests/stripe";
|
||||
import { deleteCollectionsStartsWith } from "../../../support/api/utils/catalog/collectionsUtils";
|
||||
import {
|
||||
addStripePaymentAndGetConfirmationData,
|
||||
getShippingMethodIdFromCheckout,
|
||||
} from "../../../support/api/utils/ordersUtils";
|
||||
import { createProductWithShipping } from "../../../support/api/utils/products/productsUtils";
|
||||
import {
|
||||
createProductWithShipping,
|
||||
deleteProductsStartsWith,
|
||||
} from "../../../support/api/utils/products/productsUtils";
|
||||
import { deleteShippingStartsWith } from "../../../support/api/utils/shippingUtils";
|
||||
|
||||
describe("Stripe payments", () => {
|
||||
|
@ -29,7 +33,9 @@ describe("Stripe payments", () => {
|
|||
|
||||
before(() => {
|
||||
cy.clearSessionData().loginUserViaRequest();
|
||||
deleteProductsStartsWith(startsWith);
|
||||
deleteShippingStartsWith(startsWith);
|
||||
deleteCollectionsStartsWith(startsWith);
|
||||
cy.fixture("cards").then(({ stripe }) => {
|
||||
paymentCards = stripe;
|
||||
cardData = {
|
||||
|
|
Loading…
Reference in a new issue