Skip to content

Commit

Permalink
Update snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Mar 24, 2020
1 parent 435a956 commit d486202
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions packages/server/__snapshots__/2_cdp_spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Error details:
Error: connect ECONNREFUSED 127.0.0.1:7777
[stack trace lines]
`

exports['e2e cdp / handles disconnections as expected'] = `
Expand Down
22 changes: 11 additions & 11 deletions packages/server/__snapshots__/5_spec_isolation_spec.coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports['e2e spec isolation fails'] = {
"title": [
"\"before all\" hook"
],
"body": "function () {\n if (Cypress.browser.family === 'chrome') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
"body": "function () {\n if (Cypress.browser.family === 'chromium' && Cypress.browser.name !== 'electron') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
},
{
"hookId": "h2",
Expand Down Expand Up @@ -76,8 +76,8 @@ exports['e2e spec isolation fails'] = {
],
"state": "failed",
"body": "function () { }",
"stack": "Error: fail1\n\nBecause this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 'beforeEach hooks'\n [stack trace lines]",
"error": "fail1\n\nBecause this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 'beforeEach hooks'",
"stack": "Error: fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`\n [stack trace lines]",
"error": "fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`",
"timings": {
"lifecycle": 100,
"before all": [
Expand Down Expand Up @@ -126,8 +126,8 @@ exports['e2e spec isolation fails'] = {
],
"state": "failed",
"body": "function () { }",
"stack": "Error: fail2\n\nBecause this error occurred during a 'after each' hook we are skipping the remaining tests in the current suite: 'afterEach hooks'\n [stack trace lines]",
"error": "fail2\n\nBecause this error occurred during a 'after each' hook we are skipping the remaining tests in the current suite: 'afterEach hooks'",
"stack": "Error: fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`\n [stack trace lines]",
"error": "fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`",
"timings": {
"lifecycle": 100,
"test": {
Expand Down Expand Up @@ -196,8 +196,8 @@ exports['e2e spec isolation fails'] = {
],
"state": "failed",
"body": "function () { }",
"stack": "Error: fail3\n\nBecause this error occurred during a 'after all' hook we are skipping the remaining tests in the current suite: 'after hooks'\n [stack trace lines]",
"error": "fail3\n\nBecause this error occurred during a 'after all' hook we are skipping the remaining tests in the current suite: 'after hooks'",
"stack": "Error: fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`\n [stack trace lines]",
"error": "fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`",
"timings": {
"lifecycle": 100,
"test": {
Expand Down Expand Up @@ -286,7 +286,7 @@ exports['e2e spec isolation fails'] = {
"title": [
"\"before all\" hook"
],
"body": "function () {\n if (Cypress.browser.family === 'chrome') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
"body": "function () {\n if (Cypress.browser.family === 'chromium' && Cypress.browser.name !== 'electron') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
}
],
"tests": [
Expand All @@ -298,7 +298,7 @@ exports['e2e spec isolation fails'] = {
],
"state": "failed",
"body": "function () {\n return cy.wrap(true, {\n timeout: 100\n }).should(\"be.false\");\n }",
"stack": "CypressError: Timed out retrying: expected true to be false\n [stack trace lines]",
"stack": "AssertionError: Timed out retrying: expected true to be false\n [stack trace lines]",
"error": "Timed out retrying: expected true to be false",
"timings": {
"lifecycle": 100,
Expand Down Expand Up @@ -401,7 +401,7 @@ exports['e2e spec isolation fails'] = {
"title": [
"\"before all\" hook"
],
"body": "function () {\n if (Cypress.browser.family === 'chrome') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
"body": "function () {\n if (Cypress.browser.family === 'chromium' && Cypress.browser.name !== 'electron') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
},
{
"hookId": "h2",
Expand Down Expand Up @@ -605,7 +605,7 @@ exports['e2e spec isolation fails'] = {
"title": [
"\"before all\" hook"
],
"body": "function () {\n if (Cypress.browser.family === 'chrome') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
"body": "function () {\n if (Cypress.browser.family === 'chromium' && Cypress.browser.name !== 'electron') {\n return Cypress.automation('remote:debugger:protocol', {\n command: 'Emulation.setDeviceMetricsOverride',\n params: {\n width: 1280,\n height: 720,\n deviceScaleFactor: 1,\n mobile: false,\n screenWidth: 1280,\n screenHeight: 720,\n },\n })\n .then(function () {\n // can't tell expect() not to log, so manually throwing here\n if (window.devicePixelRatio !== 1) {\n throw new Error('Setting devicePixelRatio to 1 failed');\n }\n });\n }\n}"
},
{
"hookId": "h2",
Expand Down

0 comments on commit d486202

Please sign in to comment.