diff --git a/tests/simcaq-front.js b/tests/simcaq-front.js index fc92e256363d3c6a28f53773ea2336c4d09b1271..c384544672621649e7d39a682a2f6f7b36f639da 100644 --- a/tests/simcaq-front.js +++ b/tests/simcaq-front.js @@ -26,7 +26,7 @@ describe('1 - CAQ', function() { cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi') cy.get('.edit-mode').click() - let apiGetCalls = [1, 1, 0, 1, 0, 3, 1, 1, 0, 4, 1, 0, 4, 0, 1, 0, 0, 7, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela + let apiGetCalls = [1, 1, 0, 1, 0, 3, 1, 1, 0, 4, 2, 0, 4, 0, 1, 0, 0, 7, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela for (let i = 0; i < 24; i++) { cy.wait(300) if (i == 9 || i == 18) // Telas que contêm um post. @@ -37,7 +37,7 @@ describe('1 - CAQ', function() { cy.contains('Próximo').click() } cy.wait(Array(3).fill('@getApi'), TIMEOUT) - cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.contains('Finalizar').click()} ) + cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} ) }) }) @@ -71,7 +71,7 @@ describe('2 - Orçamento educacional', function() { cy.wait(300) cy.contains('4').click() - let apiGetCalls = [0, 1, 2, 0, 1, 0, 3, 1, 1, 0, 4, 1, 0, 4, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela + let apiGetCalls = [0, 1, 2, 0, 1, 0, 3, 1, 1, 0, 4, 2, 0, 4, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela for (let i = 0; i < 25; i++) { cy.wait(300) if (i == 10 || i == 19) // Telas que contêm um post. @@ -82,7 +82,7 @@ describe('2 - Orçamento educacional', function() { cy.contains('Próximo').click() } cy.wait(Array(3).fill('@getApi'), TIMEOUT) - cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.contains('Finalizar').click()} ) + cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} ) }) it('successfully loads with RS selected', function() { @@ -118,7 +118,7 @@ describe('2 - Orçamento educacional', function() { cy.wait(300) cy.contains('4').click() - let apiGetCalls = [0, 1, 2, 0, 1, 0, 3, 1, 1, 0, 4, 1, 0, 4, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela + let apiGetCalls = [0, 1, 2, 0, 1, 0, 3, 1, 1, 0, 4, 2, 0, 4, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela for (let i = 0; i < 25; i++) { cy.wait(300) if (i == 10 || i == 19) // Telas que contêm um post. @@ -129,7 +129,7 @@ describe('2 - Orçamento educacional', function() { cy.contains('Próximo').click() } cy.wait(Array(3).fill('@getApi'), TIMEOUT) - cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.contains('Finalizar').click()} ) + cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} ) }) }) @@ -157,7 +157,7 @@ describe('3 - Fundo de manutenção', function() { cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi') cy.get('.edit-mode').click() - let apiGetCalls = [1, 1, 0, 1, 0, 3, 1, 1, 0, 4, 1, 0, 4, 0, 1, 0, 0, 7, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela + let apiGetCalls = [1, 1, 0, 1, 0, 3, 1, 1, 0, 4, 2, 0, 4, 0, 1, 0, 0, 7, 3, 0, 0, 0, 0, 0] // Quantidade de get's da api por tela for (let i = 0; i < 24; i++) { cy.wait(300) if (i == 9 || i == 18) // Telas que contêm um post. @@ -168,6 +168,6 @@ describe('3 - Fundo de manutenção', function() { cy.contains('Próximo').click() } cy.wait(Array(3).fill('@getApi'), TIMEOUT) - cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.contains('Finalizar').click()} ) + cy.get('.block-ui-main', TIMEOUT).should('not.visible').then(() => {return cy.get('.finalize').click()} ) }) }) \ No newline at end of file