Skip to content

Commit

Permalink
update proxy-logging to undo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 18, 2024
1 parent 685d816 commit 9db9e96
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/driver/cypress/e2e/cypress/proxy-logging.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ describe('Proxy Logging', () => {
// TODO(webkit): fix+unskip for webkit release
browser: '!webkit',
}, (done) => {
cy.wrap(fetch('/some-url'))
// tslint:disable:no-floating-promises
fetch('/some-url')

// trigger: Cypress.Log() called
cy.once('log:added', (log) => {
Expand Down Expand Up @@ -137,8 +138,9 @@ describe('Proxy Logging', () => {

// delay the fetch call by 100ms to ensure it gets
// triggered during the cy.wait() below
setTimeout(async () => {
await fetch('/some-url')
// tslint:disable:no-floating-promises
setTimeout(() => {
fetch('/some-url')
}, 100)

cy.wait(200).then(() => {
Expand Down Expand Up @@ -186,7 +188,10 @@ describe('Proxy Logging', () => {

it('intercept log has consoleProps with intercept info', (done) => {
cy.intercept('/some-url', 'stubbed response').as('alias')
cy.wrap(fetch('/some-url'))
.then(() => {
// tslint:disable:no-floating-promises
fetch('/some-url')
})

cy.on('log:changed', (log) => {
if (log.displayName !== 'fetch') return
Expand Down

0 comments on commit 9db9e96

Please sign in to comment.