Skip to content

Commit

Permalink
fix pause snapshot test for multi origin
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Apr 7, 2022
1 parent 2382b65 commit 42186f1
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -109,6 +109,13 @@ context('cross-origin snapshot misc', { experimentalSessionSupport: true }, () =
it('.pause()', (done) => {
cy.on('command:queue:end', () => {
setTimeout(() => {
if (Cypress.config('isInteractive')) {
// if `isInteractive`, the .pause() will NOT show up in the command log in this case. Essentially a no-op.
done()

return
}

const { consoleProps, crossOriginLog } = findCrossOriginLogs('pause', logs, 'foobar.com')

expect(crossOriginLog).to.be.true
Expand Down

0 comments on commit 42186f1

Please sign in to comment.