Skip to content
Snippets Groups Projects

Development

Merged jvfpw18 requested to merge development into master
1 file
+ 8
8
Compare changes
  • Side-by-side
  • Inline
+ 8
8
@@ -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
Loading