Skip to content

Commit

Permalink
fix proxy-logging.cy.ts for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Dec 19, 2022
1 parent 08dcded commit 8555b4c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/driver/cypress/e2e/cypress/proxy-logging.cy.ts
Expand Up @@ -47,8 +47,6 @@ describe('Proxy Logging', () => {

context('request logging', () => {
it('fetch log shows resource type, url, method, and status code and has expected snapshots and consoleProps', {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23443
retries: 15,
// TODO(webkit): fix+unskip for webkit release
browser: '!webkit',
}, (done) => {
Expand Down Expand Up @@ -100,7 +98,9 @@ describe('Proxy Logging', () => {

done()
} catch (err) {
done(new Error(err))
// don't throw, eventually the log update will come in
// eslint-disable-next-line no-console
console.error('assertion error', err)
}
})
})
Expand Down Expand Up @@ -164,7 +164,7 @@ describe('Proxy Logging', () => {
})

// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23420
it('intercept log has consoleProps with intercept info', { retries: 15 }, (done) => {
it('intercept log has consoleProps with intercept info', (done) => {
cy.intercept('/some-url', 'stubbed response').as('alias')
.then(() => {
fetch('/some-url')
Expand Down Expand Up @@ -198,8 +198,10 @@ describe('Proxy Logging', () => {
url: 'http://localhost:3500/some-url',
body: '',
httpVersion: '1.1',
query: {},
responseTimeout: Cypress.config('responseTimeout'),
headers: interceptProps.Request.headers,
resourceType: 'fetch',
},
Response: {
body: 'stubbed response',
Expand All @@ -216,7 +218,9 @@ describe('Proxy Logging', () => {

done()
} catch (error) {
done(new Error(error))
// don't throw, eventually the log update will come in
// eslint-disable-next-line no-console
console.error('assertion error', error)
}
})
})
Expand Down

0 comments on commit 8555b4c

Please sign in to comment.