-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/issuer-list-type-default' into release-week-45
- Loading branch information
Showing
8 changed files
with
925 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
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
50 changes: 50 additions & 0 deletions
50
Test/End-2-end/cypress/e2e/magento/graphql/place-order.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,50 @@ | ||
/* | ||
* Copyright Magmodules.eu. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
import Cookies from "Services/Cookies"; | ||
import MollieHostedPaymentPage from "Pages/mollie/MollieHostedPaymentPage"; | ||
import CheckoutSuccessPage from "Pages/frontend/CheckoutSuccessPage"; | ||
import OrdersPage from "Pages/backend/OrdersPage"; | ||
|
||
const cookies = new Cookies(); | ||
const mollieHostedPaymentPage = new MollieHostedPaymentPage(); | ||
const checkoutSuccessPage = new CheckoutSuccessPage(); | ||
const ordersPage = new OrdersPage(); | ||
|
||
describe('Check that the headless endpoints work as expected', () => { | ||
it('C1835263: Validate that an order can be placed through GraphQL ', () => { | ||
cy.visit('opt/mollie-pwa.html'); | ||
|
||
cy.get('[data-key="start-checkout-process"]').click(); | ||
|
||
cy.get('[data-key="mollie_methods_ideal"]').click(); | ||
|
||
cy.get('[data-key="mollie_methods_ideal-issuer"]').first().click(); | ||
|
||
cy.get('[data-key="place-order-action"]').click(); | ||
|
||
cy.get('[data-key="increment-id"]').then((element) => { | ||
cy.wrap(element.text()).as('increment-id'); | ||
}); | ||
|
||
cookies.disableSameSiteCookieRestrictions(); | ||
|
||
cy.get('[data-key="redirect-url"]').then((element) => { | ||
cy.visit(element.attr('href')); | ||
}); | ||
|
||
mollieHostedPaymentPage.selectStatus('paid'); | ||
|
||
checkoutSuccessPage.assertThatOrderSuccessPageIsShown(); | ||
|
||
cy.backendLogin(false); | ||
|
||
cy.get('@increment-id').then((incrementId) => { | ||
ordersPage.openByIncrementId(incrementId); | ||
}); | ||
|
||
ordersPage.assertOrderStatusIs('Processing'); | ||
}); | ||
}) |
Oops, something went wrong.