-
Notifications
You must be signed in to change notification settings - Fork 135
Description
Expected/Desired Behavior
No error for E2E tests on described on this file tests/e2e/specs/calendar-body.test.js
Actual Behavior
For a while, this file did not create any failed test, then it keeps yelling the same error.
This can be seen here https://github.com/Automattic/Edit-Flow/actions/workflows/e2e-and-js-tests.yml
and this screenshot.
Errors
From https://github.com/Automattic/Edit-Flow/runs/2715084649?check_suite_focus=true:
FAIL tests/e2e/specs/calendar-body.test.js (22.893s)
● Calendar Body › expects a scheduled post can be dragged and dropped
expect(received).not.toContain(expected) // indexOf
Expected value: not "Scheduled Post"
Received array: ["Scheduled Post", "Published Post"]
94 | expect(await scheduledPostDay.evaluate((node) => {
95 | return Array.prototype.slice.call(node.querySelectorAll('.item-headline.post-title strong')).map((n) => n.innerText)
> 96 | })).not.toContain('Scheduled Post');
| ^
97 | });
98 | });
at Object._callee3$ (specs/calendar-body.test.js:96:17)
at asyncGeneratorStep (specs/calendar-body.test.js:7:103)
at _next (specs/calendar-body.test.js:9:194)
at runMicrotasks (<anonymous>)
This is the result of E2E tests on my local machine:
● Calendar Body › expects a scheduled post can be dragged and dropped
expect(received).not.toContain(expected) // indexOf
Expected value: not "Scheduled Post"
Received array: ["Scheduled Post", "Published Post", "Unpublished Post"]
94 | expect(await scheduledPostDay.evaluate((node) => {
95 | return Array.prototype.slice.call(node.querySelectorAll('.item-headline.post-title strong')).map((n) => n.innerText)
> 96 | })).not.toContain('Scheduled Post');
| ^
97 | });
98 | });
at _callee3$ (specs/calendar-body.test.js:96:17)
at asyncGeneratorStep (specs/calendar-body.test.js:7:103)
at _next (specs/calendar-body.test.js:9:194)
PASS tests/e2e/specs/editorial-comments.test.js (5.575s)
PASS tests/e2e/specs/calendar-header.test.js
PASS tests/e2e/specs/simple.test.js
