Skip to content

Commit 774976d

Browse files
committed
test: relax assertion on logs preview text in acceptance test
Change strict equality check to a contains assertion in the test for the course page test results logs preview. This makes the test less brittle by allowing extra data in the logs while still ensuring the expected failure messages are present.
1 parent 520a2f1 commit 774976d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/acceptance/course-page/view-test-results-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module('Acceptance | course-page | view-test-results', function (hooks) {
8383

8484
await coursePage.testResultsBar.clickOnBottomSection();
8585
await waitUntil(() => coursePage.testResultsBar.logsPreview.logs !== ''); // Logs are fetched on-demand
86-
assert.strictEqual(coursePage.testResultsBar.logsPreview.logs, '[stage-1] failure\n[stage-2] failure');
86+
assert.contains(coursePage.testResultsBar.logsPreview.logs, '[stage-1] failure\n[stage-2] failure');
8787

8888
await percySnapshot('Course Page - View test results - Failure');
8989
});

0 commit comments

Comments
 (0)