Skip to content

Commit

Permalink
Updated snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Dec 18, 2019
1 parent 31aaba7 commit 866ed80
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions packages/server/__snapshots__/5_spec_isolation_spec.coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,31 @@ 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 }).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 === '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}"
},
{
"hookId": "h2",
"hookName": "before each",
"title": [
"\"before each\" hook"
],
"body": "function() {\n throw new Error(\"fail1\");\n }"
"body": "function () {\n throw new Error(\"fail1\");\n }"
},
{
"hookId": "h3",
"hookName": "after each",
"title": [
"\"after each\" hook"
],
"body": "function() {\n throw new Error(\"fail2\");\n }"
"body": "function () {\n throw new Error(\"fail2\");\n }"
},
{
"hookId": "h4",
"hookName": "after all",
"title": [
"\"after all\" hook"
],
"body": "function() {\n throw new Error(\"fail3\");\n }"
"body": "function () {\n throw new Error(\"fail3\");\n }"
}
],
"tests": [
Expand All @@ -75,7 +75,7 @@ exports['e2e spec isolation fails'] = {
"never gets here"
],
"state": "failed",
"body": "function() {}",
"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'",
"timings": {
Expand Down Expand Up @@ -125,7 +125,7 @@ exports['e2e spec isolation fails'] = {
"runs this"
],
"state": "failed",
"body": "function() {}",
"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'",
"timings": {
Expand Down Expand Up @@ -155,7 +155,7 @@ exports['e2e spec isolation fails'] = {
"does not run this"
],
"state": "skipped",
"body": "function() {}",
"body": "function () { }",
"stack": null,
"error": null,
"timings": null,
Expand All @@ -172,7 +172,7 @@ exports['e2e spec isolation fails'] = {
"runs this"
],
"state": "passed",
"body": "function() {}",
"body": "function () { }",
"stack": null,
"error": null,
"timings": {
Expand All @@ -195,7 +195,7 @@ exports['e2e spec isolation fails'] = {
"fails on this"
],
"state": "failed",
"body": "function() {}",
"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'",
"timings": {
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 }).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 === '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}"
}
],
"tests": [
Expand All @@ -297,7 +297,7 @@ exports['e2e spec isolation fails'] = {
"fails1"
],
"state": "failed",
"body": "function() {\n return cy.wrap(true, {\n timeout: 100\n }).should(\"be.false\");\n }",
"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]",
"error": "Timed out retrying: expected true to be false",
"timings": {
Expand Down Expand Up @@ -326,7 +326,7 @@ exports['e2e spec isolation fails'] = {
"fails2"
],
"state": "failed",
"body": "function() {\n throw new Error(\"fails2\");\n }",
"body": "function () {\n throw new Error(\"fails2\");\n }",
"stack": "Error: fails2\n [stack trace lines]",
"error": "fails2",
"timings": {
Expand Down Expand Up @@ -401,39 +401,39 @@ 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 }).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 === '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}"
},
{
"hookId": "h2",
"hookName": "before all",
"title": [
"\"before all\" hook"
],
"body": "function() {\n return cy.wait(100);\n }"
"body": "function () {\n return cy.wait(100);\n }"
},
{
"hookId": "h3",
"hookName": "before each",
"title": [
"\"before each\" hook"
],
"body": "function() {\n return cy.wait(200);\n }"
"body": "function () {\n return cy.wait(200);\n }"
},
{
"hookId": "h4",
"hookName": "after each",
"title": [
"\"after each\" hook"
],
"body": "function() {\n return cy.wait(200);\n }"
"body": "function () {\n return cy.wait(200);\n }"
},
{
"hookId": "h5",
"hookName": "after all",
"title": [
"\"after all\" hook"
],
"body": "function() {\n return cy.wait(100);\n }"
"body": "function () {\n return cy.wait(100);\n }"
}
],
"tests": [
Expand All @@ -444,7 +444,7 @@ exports['e2e spec isolation fails'] = {
"t1"
],
"state": "passed",
"body": "function() {\n return cy.wrap(\"t1\").should(\"eq\", \"t1\");\n }",
"body": "function () {\n return cy.wrap(\"t1\").should(\"eq\", \"t1\");\n }",
"stack": null,
"error": null,
"timings": {
Expand Down Expand Up @@ -492,7 +492,7 @@ exports['e2e spec isolation fails'] = {
"t2"
],
"state": "passed",
"body": "function() {\n return cy.wrap(\"t2\").should(\"eq\", \"t2\");\n }",
"body": "function () {\n return cy.wrap(\"t2\").should(\"eq\", \"t2\");\n }",
"stack": null,
"error": null,
"timings": {
Expand Down Expand Up @@ -528,7 +528,7 @@ exports['e2e spec isolation fails'] = {
"t3"
],
"state": "passed",
"body": "function() {\n return cy.wrap(\"t3\").should(\"eq\", \"t3\");\n }",
"body": "function () {\n return cy.wrap(\"t3\").should(\"eq\", \"t3\");\n }",
"stack": null,
"error": null,
"timings": {
Expand Down Expand Up @@ -605,15 +605,15 @@ 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 }).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 === '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}"
},
{
"hookId": "h2",
"hookName": "before each",
"title": [
"\"before each\" hook"
],
"body": "function() {\n return cy.wait(1000);\n }"
"body": "function () {\n return cy.wait(1000);\n }"
}
],
"tests": [
Expand All @@ -624,7 +624,7 @@ exports['e2e spec isolation fails'] = {
"passes"
],
"state": "passed",
"body": "function() {\n return cy.wrap(true).should(\"be.true\");\n }",
"body": "function () {\n return cy.wrap(true).should(\"be.true\");\n }",
"stack": null,
"error": null,
"timings": {
Expand Down

0 comments on commit 866ed80

Please sign in to comment.