Skip to content

Commit 8d52882

Browse files
committed
Revert "fix tests for electron downgrade"
This reverts commit d2a0075.
1 parent 30bd0e0 commit 8d52882

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/server/__snapshots__/8_reporters_spec.coffee.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ Error: this reporter threw an error
697697
at stack trace line
698698
at stack trace line
699699
at stack trace line
700-
at stack trace line
701700
702701
Learn more at https://on.cypress.io/reporters
703702

packages/server/test/integration/cypress_spec.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,12 +774,12 @@ describe "lib/cypress", ->
774774
debugger: {
775775
on: sinon.stub()
776776
attach: sinon.stub()
777-
sendCommand: sinon.stub().callsArg(2)
777+
sendCommand: sinon.stub().resolves()
778778
}
779779
setUserAgent: sinon.stub()
780780
session: {
781-
clearCache: sinon.stub().yieldsAsync()
782-
setProxy: sinon.stub().yieldsAsync()
781+
clearCache: sinon.stub().resolves()
782+
setProxy: sinon.stub().resolves()
783783
setUserAgent: sinon.stub()
784784
}
785785
}

packages/server/test/unit/browsers/electron_spec.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ describe "lib/browsers/electron", ->
348348
it "sets proxy rules for webContents", ->
349349
webContents = {
350350
session: {
351-
setProxy: sinon.stub().callsArg(1)
351+
setProxy: sinon.stub().resolves()
352352
}
353353
}
354354

@@ -366,6 +366,8 @@ describe "lib/browsers/electron", ->
366366
@sendCommand.throws()
367367
.withArgs('Browser.getVersion').resolves()
368368

369+
electron._attachDebugger(@win.webContents)
370+
369371
@onRequest = electron._getAutomation(@win).onRequest
370372

371373
describe "get:cookies", ->

0 commit comments

Comments
 (0)