Skip to content

Commit 6f535fa

Browse files
authored
Merge pull request #1275 from basedosdados/feat/test_implementation
refactor: Comenta testes de autenticação e validação de planos no Cyp…
2 parents a2a975d + a225d6c commit 6f535fa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

next/cypress/e2e/payment.cy.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ describe('Área do Usuário e Sistema de pagamento', () => {
226226
cy.contains('button', 'Confirmar pagamento', { timeout: 1500 })
227227
.should('be.visible')
228228
.click();
229+
230+
cy.wait(60000);
229231
});
230232

231-
cy.wait(60000);
232233
cy.get('#chakra-modal-modal-stripe-payment_intent-succeeded', { timeout: 60000 })
233234
.should('be.visible')
234235
.and('have.css', 'opacity', '1')
@@ -305,6 +306,7 @@ describe('Área do Usuário e Sistema de pagamento', () => {
305306
expect(response.status).to.eq(200);
306307
expect(response.body).to.have.property('success', true);
307308
cy.wait(60000);
309+
308310
cy.visit(`/user/${username}?plans_and_payment`);
309311

310312
cy.contains('p', 'BD Grátis', { timeout: 10000 })
@@ -343,9 +345,10 @@ describe('Área do Usuário e Sistema de pagamento', () => {
343345
cy.contains('button', 'Confirmar pagamento', { timeout: 1500 })
344346
.should('be.visible')
345347
.click();
348+
349+
cy.wait(60000);
346350
});
347351

348-
cy.wait(60000);
349352
cy.get('#chakra-modal-modal-stripe-payment_intent-succeeded', { timeout: 60000 })
350353
.should('be.visible')
351354
.and('have.css', 'opacity', '1')
@@ -422,6 +425,7 @@ describe('Área do Usuário e Sistema de pagamento', () => {
422425
expect(response.status).to.eq(200);
423426
expect(response.body).to.have.property('success', true);
424427
cy.wait(60000);
428+
425429
cy.visit(`/user/${username}?plans_and_payment`);
426430

427431
cy.contains('p', 'BD Grátis', { timeout: 10000 })

next/cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Cypress.Commands.add('fillStripeInput', (fieldName, value) => {
133133
cardCvc: 'input[id="Field-cvcInput"]'
134134
};
135135

136-
cy.get('iframe[name^="__privateStripeFrame"]', { timeout: 15000 })
136+
cy.get('iframe[name^="__privateStripeFrame"]', { timeout: 60000 })
137137
.its('0.contentDocument.body')
138138
.should('not.be.empty')
139139
.then(cy.wrap)

0 commit comments

Comments
 (0)