Skip to content

Commit

Permalink
Atualização ref. seção 12 - aula 54 - exercício extra 4
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsongs committed Oct 23, 2023
1 parent 965b9d7 commit 5bb53b1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cypress/integration/CAC-TAT.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ describe('Central de Atendimento ao Cliente TAT', function() {
cy.get('#open-text-area')
.invoke('val', longText)
.should('have.value', longText)
})
})

it.only('faz uma requisição HTTP', function() {
cy.request('https://cac-tat.s3.eu-central-1.amazonaws.com/index.html')
.should(function(response) {
// console.log(response)
const { status, statusText, body } = response
expect(status).to.equal(200)
expect(statusText).to.equal('OK')
expect(body).to.include('CAC TAT')
})
})
})

0 comments on commit 5bb53b1

Please # to comment.