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

Merge branch 'development' into 'master'

Development

See merge request !2
parents 9f2ad4db 15e74d7c
Branches
No related tags found
1 merge request!2Development
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment