Skip to content

Commit

Permalink
third h3 test semi-completed
Browse files Browse the repository at this point in the history
  • Loading branch information
n3waz committed Jun 6, 2024
1 parent 730ea7b commit ff817ab
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion cypress/e2e/ConvertOrderRequest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,42 @@ describe('HomePage', () => {
cy.get('#necessary_parts').invoke('text').should('have.string', "1x Compressor Tecumseh 1/4 HP 60Hz 110V")
})
it('Campos Vazios', () => {

cy.exec('python manage.py migrate')
cy.DeleteAndCreateAdm()
cy.visit('/')
cy.on("uncaught:exception", (e, runnable) => {
console.log("error", e);
console.log("runnable", runnable);
console.log("error", e.message);
return false;
});

cy.CreateClient("Luan Kato", "kato@gmail.com")
cy.CreateSolicitation()
cy.visit('/')
cy.ClientLogout()
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('50')
cy.get('.content > form > button').click()
cy.get('.logout > button').click()
cy.GoToClient("kato@gmail.com")
cy.get(':nth-child(4) > a').click()
cy.get('.yes')
cy.get('.waitingForm > form > button').click()
cy.ClientLogout()
cy.ChangeToAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#detailed_problem_description').type(' ')
cy.get('#necessary_parts').type(' ')
cy.get('.works > button').click()


})
})

0 comments on commit ff817ab

Please sign in to comment.