Skip to content

Commit

Permalink
NTR: fix cypress tests (payment status authorized)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitzcarsten committed Aug 5, 2021
1 parent e34f21e commit cf40675
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import PaymentAction from "Actions/storefront/checkout/PaymentAction";
import DummyBasketScenario from "Scenarios/DummyBasketScenario";
import AdminOrdersAction from "Actions/admin/AdminOrdersAction";
import AdminLoginAction from "Actions/admin/AdminLoginAction";
import Shopware from "Services/Shopware";


const devices = new Devices();
Expand All @@ -25,6 +26,7 @@ const scenarioDummyBasket = new DummyBasketScenario(1);


const device = devices.getFirstDevice();
const shopware = new Shopware();


context("Order Status Mapping Tests", () => {
Expand Down Expand Up @@ -64,8 +66,12 @@ context("Order Status Mapping Tests", () => {
molliePayment.selectAuthorized();

adminLogin.login();
let expectedPaymentStatus = 'Authorized';
if (shopware.isVersionLower('6.4.1')) {
expectedPaymentStatus = 'Paid';
}
adminOrders.assertLatestOrderStatus('In progress');
adminOrders.assertLatestPaymentStatus('Authorized');
adminOrders.assertLatestPaymentStatus(expectedPaymentStatus);
})

it('Test Status Failed', () => {
Expand Down

0 comments on commit cf40675

Please sign in to comment.