Skip to content

Instantly share code, notes, and snippets.

View mapreal19's full-sized avatar
🎯
Focusing

Mario Pérez Alarcón mapreal19

🎯
Focusing
View GitHub Profile
@mapreal19
mapreal19 / some_test.js
Created February 12, 2019 16:29 — forked from mbrochh/some_test.js
Controlling a Stripe payent popup with Cypress.io
// for this to work you need to set `"chromeWebSecurity": false` in cypress.json
describe('Make Stripe Payment', function() {
before(function() {
cy.visit('http://localhost:3000/en/stripe/checkout/')
Cypress.Cookies.preserveOnce('sessionid')
})
it('should enter credit card details and finalise payment', function() {
cy.get('[data-test="button-FormStripeCart-PayWithCreditCard"]').click()