Skip to content

Commit

Permalink
MOL-1250: add cypress test for TWINT
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Sep 26, 2023
1 parent 743d800 commit 486ff9a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions tests/Cypress/cypress/e2e/storefront/payment-methods/twint.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Devices from "Services/utils/Devices";
import Session from "Services/utils/Session"
// ------------------------------------------------------
import PaymentAction from "Actions/storefront/checkout/PaymentAction";
import DummyBasketScenario from "Scenarios/DummyBasketScenario";
// ------------------------------------------------------


const devices = new Devices();
const session = new Session();

const paymentAction = new PaymentAction();
const scenarioDummyBasket = new DummyBasketScenario(1);

const device = devices.getFirstDevice();


describe('TWINT', () => {

context(devices.getDescription(device), () => {

before(function () {
devices.setDevice(device);
})

beforeEach(() => {
session.resetBrowserSession();
devices.setDevice(device);
});

it('C1628203: TWINT is existing in checkout', () => {

scenarioDummyBasket.execute();

paymentAction.switchPaymentMethod('TWINT');

// payment would only work using currency CHF which cannot be done at the moment
})

})

})

0 comments on commit 486ff9a

Please sign in to comment.