From 893918206dada8b7d6e55c482b6a38bd44534598 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Thu, 7 Sep 2023 11:22:38 -0400 Subject: [PATCH] chore: update protocol snapshot as order or log messages seems to have changed --- system-tests/__snapshots__/protocol_spec.js | 300 ++++++++++---------- 1 file changed, 150 insertions(+), 150 deletions(-) diff --git a/system-tests/__snapshots__/protocol_spec.js b/system-tests/__snapshots__/protocol_spec.js index 4e950687829a..19a7b4393ca6 100644 --- a/system-tests/__snapshots__/protocol_spec.js +++ b/system-tests/__snapshots__/protocol_spec.js @@ -3906,17 +3906,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-7", + "id": "log-http://localhost:2121-6", "event": false, "hookId": "r5", "instrument": "command", - "message": "expected **** to have value **abcdef**", - "name": "assert", + "message": "def", + "name": "type", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r5", - "timeout": 0, + "timeout": 4000, "type": "child", "url": "", "visible": true, @@ -3924,6 +3924,16 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { + "name": "before", + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + }, + { + "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -3937,17 +3947,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-6", + "id": "log-http://localhost:2121-7", "event": false, "hookId": "r5", "instrument": "command", - "message": "def", - "name": "type", + "message": "expected **** to have value **abcdef**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r5", - "timeout": 4000, + "timeout": 0, "type": "child", "url": "", "visible": true, @@ -3955,16 +3965,6 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { - "name": "before", - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - }, - { - "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4009,17 +4009,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-10", + "id": "log-http://localhost:2121-9", "event": false, "hookId": "r6", "instrument": "command", - "message": "expected **** to have value **abcdefghi**", - "name": "assert", + "message": "ghi", + "name": "type", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r6", - "timeout": 0, + "timeout": 4000, "type": "child", "url": "", "visible": true, @@ -4027,6 +4027,16 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { + "name": "before", + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + }, + { + "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4040,17 +4050,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-9", + "id": "log-http://localhost:2121-10", "event": false, "hookId": "r6", "instrument": "command", - "message": "ghi", - "name": "type", + "message": "expected **** to have value **abcdefghi**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r6", - "timeout": 4000, + "timeout": 0, "type": "child", "url": "", "visible": true, @@ -4058,16 +4068,6 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { - "name": "before", - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - }, - { - "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4112,17 +4112,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-13", + "id": "log-http://localhost:2121-12", "event": false, "hookId": "r7", "instrument": "command", - "message": "expected **** to have value **abcdefghi!**", - "name": "assert", + "message": "!", + "name": "type", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r7", - "timeout": 0, + "timeout": 4000, "type": "child", "url": "", "visible": true, @@ -4130,6 +4130,16 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { + "name": "before", + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + }, + { + "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4143,17 +4153,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-12", + "id": "log-http://localhost:2121-13", "event": false, "hookId": "r7", "instrument": "command", - "message": "!", - "name": "type", + "message": "expected **** to have value **abcdefghi!**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r7", - "timeout": 4000, + "timeout": 0, "type": "child", "url": "", "visible": true, @@ -4161,16 +4171,6 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { - "name": "before", - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - }, - { - "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4238,17 +4238,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-17", + "id": "log-http://localhost:2121-16", "event": false, "hookId": "r7", "instrument": "command", - "message": "expected **** to have value **abc**", - "name": "assert", + "message": "abc", + "name": "type", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r7", - "timeout": 0, + "timeout": 4000, "type": "child", "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", "visible": true, @@ -4256,6 +4256,16 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { + "name": "before", + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + }, + { + "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4266,20 +4276,28 @@ exports['e2e events'] = ` ], "createdAtTimestamp": 100, "updatedAtTimestamp": 100, + "coords": { + "top": 100, + "left": 100, + "topCenter": 100, + "leftCenter": 100, + "x": 100, + "y": 100 + }, "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-16", + "id": "log-http://localhost:2121-17", "event": false, "hookId": "r7", "instrument": "command", - "message": "abc", - "name": "type", + "message": "expected **** to have value **abc**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r7", - "timeout": 4000, + "timeout": 0, "type": "child", "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", "visible": true, @@ -4287,16 +4305,6 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { - "name": "before", - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - }, - { - "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4307,14 +4315,6 @@ exports['e2e events'] = ` ], "createdAtTimestamp": 100, "updatedAtTimestamp": 100, - "coords": { - "top": 100, - "left": 100, - "topCenter": 100, - "leftCenter": 100, - "x": 100, - "y": 100 - }, "highlightAttr": "data-cypress-el" }, { @@ -4475,17 +4475,17 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-24", + "id": "log-http://localhost:2121-23", "event": false, "hookId": "r10", "instrument": "command", - "message": "expected **** to have value **abc**", - "name": "assert", + "message": "abc", + "name": "type", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r10", - "timeout": 0, + "timeout": 4000, "type": "child", "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", "visible": true, @@ -4493,6 +4493,16 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { + "name": "before", + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + }, + { + "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4503,20 +4513,28 @@ exports['e2e events'] = ` ], "createdAtTimestamp": 100, "updatedAtTimestamp": 100, + "coords": { + "top": 100, + "left": 100, + "topCenter": 100, + "leftCenter": 100, + "x": 100, + "y": 100 + }, "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-23", + "id": "log-http://localhost:2121-24", "event": false, "hookId": "r10", "instrument": "command", - "message": "abc", - "name": "type", + "message": "expected **** to have value **abc**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r10", - "timeout": 4000, + "timeout": 0, "type": "child", "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", "visible": true, @@ -4524,16 +4542,6 @@ exports['e2e events'] = ` "testCurrentRetry": 0, "snapshots": [ { - "name": "before", - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - }, - { - "name": "after", "timestamp": 100, "elementsToHighlight": [ { @@ -4544,14 +4552,6 @@ exports['e2e events'] = ` ], "createdAtTimestamp": 100, "updatedAtTimestamp": 100, - "coords": { - "top": 100, - "left": 100, - "topCenter": 100, - "leftCenter": 100, - "x": 100, - "y": 100 - }, "highlightAttr": "data-cypress-el" }, { @@ -4608,37 +4608,6 @@ exports['e2e events'] = ` "updatedAtTimestamp": 100, "highlightAttr": "data-cypress-el" }, - { - "id": "log-http://localhost:2121-28", - "event": false, - "hookId": "r11", - "instrument": "command", - "message": "expected **** to have value **def**", - "name": "assert", - "numElements": 1, - "renderProps": {}, - "state": "passed", - "testId": "r11", - "timeout": 0, - "type": "child", - "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", - "visible": true, - "wallClockStartedAt": "2015-03-18T00:00:00.000Z", - "testCurrentRetry": 0, - "snapshots": [ - { - "timestamp": 100, - "elementsToHighlight": [ - { - "selector": "#text-target" - } - ] - } - ], - "createdAtTimestamp": 100, - "updatedAtTimestamp": 100, - "highlightAttr": "data-cypress-el" - }, { "id": "log-http://localhost:2121-27", "event": false, @@ -4689,19 +4658,19 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-29", + "id": "log-http://localhost:2121-28", "event": false, - "hookId": "r13", + "hookId": "r11", "instrument": "command", - "message": "#text-target", - "name": "get", + "message": "expected **** to have value **def**", + "name": "assert", "numElements": 1, "renderProps": {}, "state": "passed", - "testId": "r13", - "timeout": 4000, - "type": "parent", - "url": "", + "testId": "r11", + "timeout": 0, + "type": "child", + "url": "http://localhost:2121/cypress/fixtures/dom-with-browser-interactions.html", "visible": true, "wallClockStartedAt": "2015-03-18T00:00:00.000Z", "testCurrentRetry": 0, @@ -4720,18 +4689,18 @@ exports['e2e events'] = ` "highlightAttr": "data-cypress-el" }, { - "id": "log-http://localhost:2121-31", + "id": "log-http://localhost:2121-29", "event": false, "hookId": "r13", "instrument": "command", - "message": "expected **** to have value **defabc**", - "name": "assert", + "message": "#text-target", + "name": "get", "numElements": 1, "renderProps": {}, "state": "passed", "testId": "r13", - "timeout": 0, - "type": "child", + "timeout": 4000, + "type": "parent", "url": "", "visible": true, "wallClockStartedAt": "2015-03-18T00:00:00.000Z", @@ -4790,6 +4759,37 @@ exports['e2e events'] = ` "createdAtTimestamp": 100, "updatedAtTimestamp": 100, "highlightAttr": "data-cypress-el" + }, + { + "id": "log-http://localhost:2121-31", + "event": false, + "hookId": "r13", + "instrument": "command", + "message": "expected **** to have value **defabc**", + "name": "assert", + "numElements": 1, + "renderProps": {}, + "state": "passed", + "testId": "r13", + "timeout": 0, + "type": "child", + "url": "", + "visible": true, + "wallClockStartedAt": "2015-03-18T00:00:00.000Z", + "testCurrentRetry": 0, + "snapshots": [ + { + "timestamp": 100, + "elementsToHighlight": [ + { + "selector": "#text-target" + } + ] + } + ], + "createdAtTimestamp": 100, + "updatedAtTimestamp": 100, + "highlightAttr": "data-cypress-el" } ], "viewportChanged": [