Skip to content

Commit

Permalink
Re-order fixture keys
Browse files Browse the repository at this point in the history
The order of keys in the generated output changed during introduction of
the native JSON formatter. This didn't change the outcome of any tests,
because key order doesn't matter. It does however make it cumbersome to
change tests. Hence, it's time to reset the fixtures.
  • Loading branch information
badeball committed Jul 10, 2023
1 parent 4cb4f1e commit 5cb796c
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 77 deletions.
10 changes: 5 additions & 5 deletions features/fixtures/attachments/screenshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
},
"embeddings": [
{
"data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAM0lEQVR4Aa3BAQEAAAiDMKR/51uC7QYjJDGJSUxiEpOYxCQmMYlJTGISk5jEJCYxiUnsARwEAibDACoRAAAAAElFTkSuQmCC",
Expand All @@ -34,8 +34,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
10 changes: 5 additions & 5 deletions features/fixtures/attachments/string-base64.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
},
"embeddings": [
{
"data": "Zm9vYmFy",
Expand All @@ -34,8 +34,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
10 changes: 5 additions & 5 deletions features/fixtures/attachments/string-literal.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
},
"embeddings": [
{
"data": "foobar",
Expand All @@ -34,8 +34,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
10 changes: 5 additions & 5 deletions features/fixtures/failing-after.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
Expand All @@ -37,8 +37,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
2 changes: 1 addition & 1 deletion features/fixtures/failing-after.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"a feature","description":"","children":[{"scenario":{"id":"id","tags":[],"location":{"line":2,"column":3},"keyword":"Scenario","name":"a scenario","description":"","steps":[{"id":"id","location":{"line":3,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"cypress/e2e/a.feature"}}
{"pickle":{"id":"id","uri":"cypress/e2e/a.feature","astNodeIds":["id"],"tags":[],"name":"a scenario","language":"en","steps":[{"id":"id","text":"a step","type":"Context","astNodeIds":["id"]}]}}
{"hook":{"id":"id","sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"source":"a step","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"testCase":{"id":"id","pickleId":"id","testSteps":[{"id":"id","pickleStepId":"id","stepDefinitionIds":["id"]},{"id":"id","hookId":"id"}]}}
{"testCaseStarted":{"id":"id","testCaseId":"id","attempt":0,"timestamp":{"seconds":0,"nanos":0}}}
{"testStepStarted":{"testStepId":"id","testCaseStartedId":"id","timestamp":{"seconds":0,"nanos":0}}}
Expand Down
8 changes: 4 additions & 4 deletions features/fixtures/failing-before.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"match": {
"location": "not available:0"
},
"result": {
"status": "skipped",
"duration": 0
},
"match": {
"location": "not available:0"
}
}
],
Expand All @@ -37,8 +37,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
2 changes: 1 addition & 1 deletion features/fixtures/failing-before.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"a feature","description":"","children":[{"scenario":{"id":"id","tags":[],"location":{"line":2,"column":3},"keyword":"Scenario","name":"a scenario","description":"","steps":[{"id":"id","location":{"line":3,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"cypress/e2e/a.feature"}}
{"pickle":{"id":"id","uri":"cypress/e2e/a.feature","astNodeIds":["id"],"tags":[],"name":"a scenario","language":"en","steps":[{"id":"id","text":"a step","type":"Context","astNodeIds":["id"]}]}}
{"hook":{"id":"id","sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"source":"a step","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"testCase":{"id":"id","pickleId":"id","testSteps":[{"id":"id","hookId":"id"},{"id":"id","pickleStepId":"id","stepDefinitionIds":["id"]}]}}
{"testCaseStarted":{"id":"id","testCaseId":"id","attempt":0,"timestamp":{"seconds":0,"nanos":0}}}
{"testStepStarted":{"testStepId":"id","testCaseStartedId":"id","timestamp":{"seconds":0,"nanos":0}}}
Expand Down
14 changes: 7 additions & 7 deletions features/fixtures/failing-step.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
"keyword": "Given ",
"line": 3,
"name": "a failing step",
"match": {
"location": "not available:0"
},
"result": {
"status": "failed",
"duration": 0,
"error_message": "some error"
},
"match": {
"location": "not available:0"
}
},
{
"arguments": [],
"keyword": "And ",
"line": 4,
"name": "another step",
"match": {
"location": "not available:0"
},
"result": {
"status": "skipped",
"duration": 0
},
"match": {
"location": "not available:0"
}
}
],
Expand All @@ -42,8 +42,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
20 changes: 10 additions & 10 deletions features/fixtures/multiple-features.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
}
],
Expand All @@ -28,8 +28,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand All @@ -49,12 +49,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
}
],
Expand All @@ -63,8 +63,8 @@
}
],
"id": "another-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "another feature",
"tags": [],
"uri": "cypress/e2e/b.feature"
Expand Down
4 changes: 2 additions & 2 deletions features/fixtures/multiple-features.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{"source":{"data":"Feature: a feature\n Scenario: a scenario\n Given a step","uri":"cypress/e2e/a.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"a feature","description":"","children":[{"scenario":{"id":"id","tags":[],"location":{"line":2,"column":3},"keyword":"Scenario","name":"a scenario","description":"","steps":[{"id":"id","location":{"line":3,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"cypress/e2e/a.feature"}}
{"pickle":{"id":"id","uri":"cypress/e2e/a.feature","astNodeIds":["id"],"tags":[],"name":"a scenario","language":"en","steps":[{"id":"id","text":"a step","type":"Context","astNodeIds":["id"]}]}}
{"stepDefinition":{"id":"id","pattern":{"source":"a step","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"testCase":{"id":"id","pickleId":"id","testSteps":[{"id":"id","pickleStepId":"id","stepDefinitionIds":["id"]}]}}
{"testCaseStarted":{"id":"id","testCaseId":"id","attempt":0,"timestamp":{"seconds":0,"nanos":0}}}
{"testStepStarted":{"testStepId":"id","testCaseStartedId":"id","timestamp":{"seconds":0,"nanos":0}}}
Expand All @@ -11,7 +11,7 @@
{"source":{"data":"Feature: another feature\n Scenario: another scenario\n Given a step","uri":"cypress/e2e/b.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"another feature","description":"","children":[{"scenario":{"id":"id","tags":[],"location":{"line":2,"column":3},"keyword":"Scenario","name":"another scenario","description":"","steps":[{"id":"id","location":{"line":3,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"cypress/e2e/b.feature"}}
{"pickle":{"id":"id","uri":"cypress/e2e/b.feature","astNodeIds":["id"],"tags":[],"name":"another scenario","language":"en","steps":[{"id":"id","text":"a step","type":"Context","astNodeIds":["id"]}]}}
{"stepDefinition":{"id":"id","pattern":{"source":"a step","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"testCase":{"id":"id","pickleId":"id","testSteps":[{"id":"id","pickleStepId":"id","stepDefinitionIds":["id"]}]}}
{"testCaseStarted":{"id":"id","testCaseId":"id","attempt":0,"timestamp":{"seconds":0,"nanos":0}}}
{"testStepStarted":{"testStepId":"id","testCaseStartedId":"id","timestamp":{"seconds":0,"nanos":0}}}
Expand Down
10 changes: 5 additions & 5 deletions features/fixtures/passed-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
}
],
Expand All @@ -28,8 +28,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
2 changes: 1 addition & 1 deletion features/fixtures/passed-example.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{"source":{"data":"Feature: a feature\n Scenario: a scenario\n Given a step","uri":"cypress/e2e/a.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"a feature","description":"","children":[{"scenario":{"id":"id","tags":[],"location":{"line":2,"column":3},"keyword":"Scenario","name":"a scenario","description":"","steps":[{"id":"id","location":{"line":3,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"cypress/e2e/a.feature"}}
{"pickle":{"id":"id","uri":"cypress/e2e/a.feature","astNodeIds":["id"],"tags":[],"name":"a scenario","language":"en","steps":[{"id":"id","text":"a step","type":"Context","astNodeIds":["id"]}]}}
{"stepDefinition":{"id":"id","pattern":{"source":"a step","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"stepDefinition":{"id":"id","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step"},"sourceReference":{"uri":"not available","location":{"line":0}}}}
{"testCase":{"id":"id","pickleId":"id","testSteps":[{"id":"id","pickleStepId":"id","stepDefinitionIds":["id"]}]}}
{"testCaseStarted":{"id":"id","testCaseId":"id","attempt":0,"timestamp":{"seconds":0,"nanos":0}}}
{"testStepStarted":{"testStepId":"id","testCaseStartedId":"id","timestamp":{"seconds":0,"nanos":0}}}
Expand Down
18 changes: 9 additions & 9 deletions features/fixtures/passed-outline.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
}
],
Expand All @@ -38,12 +38,12 @@
"keyword": "Given ",
"line": 3,
"name": "a step",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 0
}
}
],
Expand All @@ -52,8 +52,8 @@
}
],
"id": "a-feature",
"keyword": "Feature",
"line": 1,
"keyword": "Feature",
"name": "a feature",
"tags": [],
"uri": "cypress/e2e/a.feature"
Expand Down
Loading

0 comments on commit 5cb796c

Please sign in to comment.