Skip to content
Snippets Groups Projects
Commit da6d10f5 authored by jvfpw18's avatar jvfpw18
Browse files

Fix next being covered sometimes

parent a64c76e4
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,7 @@ describe('1 - CAQ', function() {
cy.wait('@postApi', TIMEOUT)
if (apiGetCalls[i] > 0)
cy.wait(Array(apiGetCalls[i]).fill('@getApi'), TIMEOUT)
cy.contains('Próximo').click()
cy.get('.btn-primary.step.next').click()
}
cy.wait(Array(3).fill('@getApi'), TIMEOUT)
cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} )
......@@ -79,7 +78,7 @@ describe('2 - Orçamento educacional', function() {
if (apiGetCalls[i] > 0)
cy.wait(Array(apiGetCalls[i]).fill('@getApi'), TIMEOUT)
cy.contains('Próximo').click()
cy.get('.btn-primary.step.next').click()
}
cy.wait(Array(3).fill('@getApi'), TIMEOUT)
cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} )
......@@ -126,7 +125,7 @@ describe('2 - Orçamento educacional', function() {
if (apiGetCalls[i] > 0)
cy.wait(Array(apiGetCalls[i]).fill('@getApi'), TIMEOUT)
cy.contains('Próximo').click()
cy.get('.btn-primary.step.next').click()
}
cy.wait(Array(3).fill('@getApi'), TIMEOUT)
cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} )
......@@ -165,7 +164,7 @@ describe('3 - Fundo de manutenção', function() {
if (apiGetCalls[i] > 0)
cy.wait(Array(apiGetCalls[i]).fill('@getApi'), TIMEOUT)
cy.contains('Próximo').click()
cy.get('.btn-primary.step.next').click()
}
cy.wait(Array(3).fill('@getApi'), TIMEOUT)
cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment