Skip to content

Commit 6b31585

Browse files
authored
Report status updates (#297)
* Update ResultsTestStep.tsx * Update test_rule_editor.py
1 parent fe7abf9 commit 6b31585

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/TestStep/ResultsTestStep.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default function ResultsTestStep() {
1919
).length;
2020

2121
const testResultHasErrors = (currentRecordResult: object): boolean =>
22-
(currentRecordResult["executionStatus"] ?? "execution_error") ===
23-
"execution_error" &&
22+
(currentRecordResult["executionStatus"] ?? "execution error") ===
23+
"execution error" &&
2424
((currentRecordResult["errors"] ?? []).length === 0 ||
2525
currentRecordResult["errors"].length -
2626
varSkipCount(currentRecordResult) >
@@ -73,7 +73,7 @@ export default function ResultsTestStep() {
7373
) =>
7474
aggregateRecordResult +
7575
(currentRecordResult["executionStatus"] ===
76-
"issue_reported" && "errors" in currentRecordResult
76+
"issue reported" && "errors" in currentRecordResult
7777
? currentRecordResult["errors"].length
7878
: 0),
7979
0

tests/test_rule_editor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def save_screenshot(driver, name_prefix="screenshot"):
199199
],
200200
"FA": [
201201
{
202-
"executionStatus": "issue_reported",
202+
"executionStatus": "issue reported",
203203
"dataset": "fa.xpt",
204204
"domain": "FA",
205205
"variables": [
@@ -267,7 +267,7 @@ def save_screenshot(driver, name_prefix="screenshot"):
267267
],
268268
"IE": [
269269
{
270-
"executionStatus": "issue_reported",
270+
"executionStatus": "issue reported",
271271
"dataset": "ie.xpt",
272272
"domain": "IE",
273273
"variables": [
@@ -299,7 +299,7 @@ def save_screenshot(driver, name_prefix="screenshot"):
299299
],
300300
"LB": [
301301
{
302-
"executionStatus": "issue_reported",
302+
"executionStatus": "issue reported",
303303
"dataset": "lb.xpt",
304304
"domain": "LB",
305305
"variables": [

0 commit comments

Comments
 (0)