Skip to content

Commit

Permalink
fix tests for electron downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Sep 24, 2019
1 parent 3581e52 commit d2a0075
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/server/__snapshots__/8_reporters_spec.coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ Error: this reporter threw an error
at stack trace line
at stack trace line
at stack trace line
at stack trace line
Learn more at https://on.cypress.io/reporters
Expand Down
6 changes: 3 additions & 3 deletions packages/server/test/integration/cypress_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,12 @@ describe "lib/cypress", ->
debugger: {
on: sinon.stub()
attach: sinon.stub()
sendCommand: sinon.stub().resolves()
sendCommand: sinon.stub().callsArg(2)
}
setUserAgent: sinon.stub()
session: {
clearCache: sinon.stub().resolves()
setProxy: sinon.stub().resolves()
clearCache: sinon.stub().yieldsAsync()
setProxy: sinon.stub().yieldsAsync()
setUserAgent: sinon.stub()
}
}
Expand Down
4 changes: 1 addition & 3 deletions packages/server/test/unit/browsers/electron_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ describe "lib/browsers/electron", ->
it "sets proxy rules for webContents", ->
webContents = {
session: {
setProxy: sinon.stub().resolves()
setProxy: sinon.stub().callsArg(1)
}
}

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

electron._attachDebugger(@win.webContents)

@onRequest = electron._getAutomation(@win).onRequest

describe "get:cookies", ->
Expand Down

0 comments on commit d2a0075

Please sign in to comment.