You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constTemplate: Story<TemplateArgs>=({ result })=>{
17
+
return(
18
+
<CucumberReact>
19
+
<TestStepResultDetails{...result}/>
20
+
</CucumberReact>
21
+
)
22
+
}
23
+
24
+
exportconstLegacy=Template.bind({})
25
+
Legacy.args={
26
+
result: {
27
+
status: TestStepResultStatus.FAILED,
28
+
message: 'Oh no a bad thing happened!',
29
+
},
30
+
}
31
+
32
+
exportconstNothingToSee=Template.bind({})
33
+
NothingToSee.args={
34
+
result: {
35
+
status: TestStepResultStatus.PASSED,
36
+
},
37
+
}
38
+
39
+
exportconstTypedException=Template.bind({})
40
+
TypedException.args={
41
+
result: {
42
+
status: TestStepResultStatus.FAILED,
43
+
message:
44
+
"TypeError: Cannot read properties of null (reading 'type')\n at TodosPage.addItem (/Users/somebody/Projects/my-project/support/pages/TodosPage.ts:39:21)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at CustomWorld.<anonymous> (/Users/somebody/Projects/my-project/support/steps/steps.ts:20:5)",
45
+
exception: {
46
+
type: 'TypeError',
47
+
message: "Cannot read properties of null (reading 'type')",
48
+
},
49
+
},
50
+
}
51
+
52
+
exportconstWithStackTrace=Template.bind({})
53
+
WithStackTrace.args={
54
+
result: {
55
+
status: TestStepResultStatus.FAILED,
56
+
message:
57
+
"TypeError: Cannot read properties of null (reading 'type')\n at TodosPage.addItem (/Users/somebody/Projects/my-project/support/pages/TodosPage.ts:39:21)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at CustomWorld.<anonymous> (/Users/somebody/Projects/my-project/support/steps/steps.ts:20:5)",
58
+
exception: {
59
+
type: 'TypeError',
60
+
message: "Cannot read properties of null (reading 'type')",
61
+
stackTrace:
62
+
' at TodosPage.addItem (/Users/somebody/Projects/my-project/support/pages/TodosPage.ts:39:21)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at CustomWorld.<anonymous> (/Users/somebody/Projects/my-project/support/steps/steps.ts:20:5)',
0 commit comments