Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ jobs:
- store_test_results:
path: /tmp/cypress

"driver-integration-tests-3x":
"driver-integration-tests-chrome":
<<: *defaults
parallelism: 3
parallelism: 5
steps:
- attach_workspace:
at: ~/
Expand All @@ -423,7 +423,31 @@ jobs:
command: |
CYPRESS_KONFIG_ENV=production \
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
npm run cypress:run -- --record --parallel --group 3x-driver-chrome --browser chrome
npm run cypress:run -- --record --parallel --group 5x-driver-chrome --browser chrome
working_directory: packages/driver
- store_test_results:
path: /tmp/cypress
- store_artifacts:
path: /tmp/artifacts

"driver-integration-tests-electron":
<<: *defaults
parallelism: 5
steps:
- attach_workspace:
at: ~/
- run:
command: npm start
background: true
working_directory: packages/driver
- run:
command: $(npm bin)/wait-on http://localhost:3500
working_directory: packages/driver
- run:
command: |
CYPRESS_KONFIG_ENV=production \
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
npm run cypress:run -- --record --parallel --group 5x-driver-electron --browser electron
working_directory: packages/driver
- store_test_results:
path: /tmp/cypress
Expand Down Expand Up @@ -796,7 +820,11 @@ linux-workflow: &linux-workflow
- server-e2e-tests-8:
requires:
- build
- driver-integration-tests-3x:
- driver-integration-tests-chrome:
context: test-runner:integration-tests
requires:
- build
- driver-integration-tests-electron:
context: test-runner:integration-tests
requires:
- build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ describe "src/cy/commands/clock", ->
.then (clock) ->
cy.window().then (win) ->
expect(win.performance.getEntriesByType("paint")).to.deep.eq([])
expect(win.performance.getEntriesByName("first-paint")).to.deep.eq([])
expect(win.performance.getEntries()).to.deep.eq([])

clock.restore()

expect(win.performance.getEntriesByType("paint").length).to.be.at.least(1)
expect(win.performance.getEntriesByName("first-paint").length).to.be.at.least(1)
expect(win.performance.getEntries().length).to.be.at.least(1)

context "errors", ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,19 @@ describe "src/cy/commands/navigation", ->

describe ".log", ->
beforeEach ->
@logs = []
cy.visit("/fixtures/generic.html").then ->
@logs = []

cy.on "log:added", (attrs, log) =>
if attrs.name is "go"
@lastLog = log
cy.on "log:added", (attrs, log) =>
if attrs.name is "go"
@lastLog = log

@logs.push(log)
@logs.push(log)

return null
return null

it "logs go", ->
cy
.visit("/fixtures/generic.html")
.visit("/fixtures/jquery.html")
.go("back").then ->
lastLog = @lastLog
Expand All @@ -384,14 +384,12 @@ describe "src/cy/commands/navigation", ->

it "can turn off logging", ->
cy
.visit("/fixtures/generic.html")
.visit("/fixtures/jquery.html")
.go("back", {log: false}).then ->
expect(@lastLog).to.be.undefined

it "does not log 'Page Load' events", ->
cy
.visit("/fixtures/generic.html")
.visit("/fixtures/jquery.html")
.go("back").then ->
@logs.slice(0).forEach (log) ->
Expand All @@ -401,7 +399,6 @@ describe "src/cy/commands/navigation", ->
beforeunload = false

cy
.visit("/fixtures/generic.html")
.visit("/fixtures/jquery.html")
.window().then (win) ->
cy.on "window:before:unload", =>
Expand Down