From b3ad709f128c5d8a9a5f7e1f616ed9e373d28bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Frans=20Pondaco=20Winandy?= <jvfpw18@inf.ufpr.br> Date: Mon, 1 Jul 2019 10:52:53 -0300 Subject: [PATCH] Working with last simcaq version --- tests/simcaq-front.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/simcaq-front.js b/tests/simcaq-front.js index fc92e25..c384544 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 -- GitLab