Skip to content

Commit 9bebdd4

Browse files
committed
make tests reflect ordering
1 parent 88ce7bb commit 9bebdd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/app/StatusesSummary.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ describe('StatusesSummary', () => {
1515
)
1616

1717
expect(getAllByRole('listitem').map((li) => li.textContent)).to.deep.eq([
18-
'2 failed',
1918
'5 passed',
2019
'2 undefined',
20+
'2 failed',
2121
])
2222
})
2323
})

src/countScenariosByStatuses.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Feature: statuses
5454
expect(scenarioCountByStatus[messages.TestStepResultStatus.FAILED]).to.eq(1)
5555
expect(scenarioCountByStatus[messages.TestStepResultStatus.UNDEFINED]).to.eq(1)
5656
expect(statusesWithScenarios).to.deep.eq([
57-
TestStepResultStatus.FAILED,
5857
TestStepResultStatus.PASSED,
5958
TestStepResultStatus.UNDEFINED,
59+
TestStepResultStatus.FAILED,
6060
])
6161
expect(totalScenarioCount).to.eq(4)
6262
// Ridiculously long because runFeature (fake cucumber) seems to run very slowly with ts-node (?)
@@ -88,9 +88,9 @@ Feature: statuses
8888
expect(scenarioCountByStatus[messages.TestStepResultStatus.FAILED]).to.eq(1)
8989
expect(scenarioCountByStatus[messages.TestStepResultStatus.UNDEFINED]).to.eq(1)
9090
expect(statusesWithScenarios).to.deep.eq([
91-
TestStepResultStatus.FAILED,
9291
TestStepResultStatus.PASSED,
9392
TestStepResultStatus.UNDEFINED,
93+
TestStepResultStatus.FAILED,
9494
])
9595
expect(totalScenarioCount).to.eq(3)
9696
})

0 commit comments

Comments
 (0)