Skip to content

Commit

Permalink
Atualização20:28
Browse files Browse the repository at this point in the history
  • Loading branch information
willmustang committed Dec 21, 2024
1 parent e6a8e67 commit 8ef3517
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
15 changes: 8 additions & 7 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"viewportWidth": 1280,
"viewportHeight": 720,
"video": true,
"screenshotsFolder": "cypress/screenshots",
"videosFolder": "cypress/videos",
"integrationFolder": "cypress/integration"
}
"viewportWidth": 1280,
"viewportHeight": 720,
"video": true,
"screenshotsFolder": "cypress/screenshots",
"videosFolder": "cypress/videos",
"integrationFolder": "cypress/integration",
"supportFile": "cypress/support/integration.js"
}
2 changes: 1 addition & 1 deletion cypress/integration/Specs/CAC-TAT.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('Central de Atendimento ao Cliente TAT', function() {
})

it('Envia formulário com sucesso usando comando customizado', function(){
cy.fillMandatoryFieldsAndSubmit()
cy.fillMandatoryFields///AndSubmit()
cy.get('.success').should('be.visible')
})

Expand Down
14 changes: 7 additions & 7 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
Cypress.Commands.add('fillMandatoryFieldsAndSubmit', function(){
cy.get('#firstName').type('Willian')
cy.get('#lastName').type('de Souza Silva')
cy.get('#email').type('williandesouza3@gmail.com')
cy.get('#open-text-area').type('Teste')
cy.contains('button', 'Enviar').click()
})
Cypress.Commands.add('fillMandatoryFieldsAndSubmit', () => {
cy.get('#firstName').type('John')
cy.get('#lastName').type('Doe')
cy.get('#email').type('john.doe@example.com')
cy.get('#open-text-area').type('teste')
cy.get('button[type="submit"]').click()
})
File renamed without changes.

0 comments on commit 8ef3517

Please sign in to comment.