Skip to content

Commit 42186f1

Browse files
committed
fix pause snapshot test for multi origin
1 parent 2382b65 commit 42186f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/driver/cypress/integration/e2e/multi-domain/snapshots/multi_domain_snapshot_misc.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ context('cross-origin snapshot misc', { experimentalSessionSupport: true }, () =
109109
it('.pause()', (done) => {
110110
cy.on('command:queue:end', () => {
111111
setTimeout(() => {
112+
if (Cypress.config('isInteractive')) {
113+
// if `isInteractive`, the .pause() will NOT show up in the command log in this case. Essentially a no-op.
114+
done()
115+
116+
return
117+
}
118+
112119
const { consoleProps, crossOriginLog } = findCrossOriginLogs('pause', logs, 'foobar.com')
113120

114121
expect(crossOriginLog).to.be.true

0 commit comments

Comments
 (0)