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

Working with last simcaq version

parent a9f80367
No related branches found
No related tags found
1 merge request!2Development
...@@ -26,7 +26,7 @@ describe('1 - CAQ', function() { ...@@ -26,7 +26,7 @@ describe('1 - CAQ', function() {
cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi') cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi')
cy.get('.edit-mode').click() 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++) { for (let i = 0; i < 24; i++) {
cy.wait(300) cy.wait(300)
if (i == 9 || i == 18) // Telas que contêm um post. if (i == 9 || i == 18) // Telas que contêm um post.
...@@ -37,7 +37,7 @@ describe('1 - CAQ', function() { ...@@ -37,7 +37,7 @@ describe('1 - CAQ', function() {
cy.contains('Próximo').click() cy.contains('Próximo').click()
} }
cy.wait(Array(3).fill('@getApi'), TIMEOUT) 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() { ...@@ -71,7 +71,7 @@ describe('2 - Orçamento educacional', function() {
cy.wait(300) cy.wait(300)
cy.contains('4').click() 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++) { for (let i = 0; i < 25; i++) {
cy.wait(300) cy.wait(300)
if (i == 10 || i == 19) // Telas que contêm um post. if (i == 10 || i == 19) // Telas que contêm um post.
...@@ -82,7 +82,7 @@ describe('2 - Orçamento educacional', function() { ...@@ -82,7 +82,7 @@ describe('2 - Orçamento educacional', function() {
cy.contains('Próximo').click() cy.contains('Próximo').click()
} }
cy.wait(Array(3).fill('@getApi'), TIMEOUT) 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() { it('successfully loads with RS selected', function() {
...@@ -118,7 +118,7 @@ describe('2 - Orçamento educacional', function() { ...@@ -118,7 +118,7 @@ describe('2 - Orçamento educacional', function() {
cy.wait(300) cy.wait(300)
cy.contains('4').click() 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++) { for (let i = 0; i < 25; i++) {
cy.wait(300) cy.wait(300)
if (i == 10 || i == 19) // Telas que contêm um post. if (i == 10 || i == 19) // Telas que contêm um post.
...@@ -129,7 +129,7 @@ describe('2 - Orçamento educacional', function() { ...@@ -129,7 +129,7 @@ describe('2 - Orçamento educacional', function() {
cy.contains('Próximo').click() cy.contains('Próximo').click()
} }
cy.wait(Array(3).fill('@getApi'), TIMEOUT) 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() { ...@@ -157,7 +157,7 @@ describe('3 - Fundo de manutenção', function() {
cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi') cy.route({url: 'api/v1/**', method: 'GET'}).as('getApi')
cy.get('.edit-mode').click() 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++) { for (let i = 0; i < 24; i++) {
cy.wait(300) cy.wait(300)
if (i == 9 || i == 18) // Telas que contêm um post. if (i == 9 || i == 18) // Telas que contêm um post.
...@@ -168,6 +168,6 @@ describe('3 - Fundo de manutenção', function() { ...@@ -168,6 +168,6 @@ describe('3 - Fundo de manutenção', function() {
cy.contains('Próximo').click() cy.contains('Próximo').click()
} }
cy.wait(Array(3).fill('@getApi'), TIMEOUT) 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment