forked from mollie/Shopware6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOL-1250: add cypress test for TWINT
- Loading branch information
1 parent
743d800
commit 486ff9a
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
tests/Cypress/cypress/e2e/storefront/payment-methods/twint.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}) | ||
|
||
}) | ||
|
||
}) | ||
|