text
text copied to clipboard
Flaky sharing cypress tests
Sometimes the sharing cypress tests seem to fail:
1) Open test.md in viewer
Opens the editor as guest:
AssertionError: Timed out retrying after 10000ms: Expected to find element: `.ProseMirror`, but never found it. Queried from element: <div#editor-container.text-editor>
at Context.eval (http://localhost:8081/__cypress/tests?p=cypress/e2e/share.spec.js:2:3738)
Recorded Run: https://dashboard.cypress.io/projects/hx9gqy/runs/5330
Looks like this is caused by the HTTP 500 error when trying to get a new session:
A few more https://dashboard.cypress.io/projects/hx9gqy/runs/6617/test-results?actions=%5B%5D&browsers=%5B%5D&groups=%5B%5D&isFlaky=%5B%5D&modificationDateRange=%7B%22startDate%22%3A%221970-01-01%22%2C%22endDate%22%3A%222038-01-19%22%7D&orderBy=EXECUTION_ORDER&oses=%5B%5D&specs=%5B%5D&statuses=%5B%7B%22value%22%3A%22FAILED%22%2C%22label%22%3A%22FAILED%22%7D%5D&testingTypesEnum=%5B%5D&utm_source=github

Some of them have been fixed in #3153
https://dashboard.cypress.io/projects/hx9gqy/analytics/flaky-tests?branches=%5B%7B%22label%22%3A%22master%22%2C%22suggested%22%3Afalse%2C%22value%22%3A%22master%22%7D%5D&browsers=%5B%5D&chartRangeMostCommonErrors=%5B%5D&chartRangeSlowestTests=%5B%5D&chartRangeTopFailures=%5B%5D&committers=%5B%5D&cypressVersions=%5B%5D&flaky=%5B%5D&operatingSystems=%5B%5D&runGroups=%5B%5D&specFiles=%5B%5D&status=%5B%7B%22label%22%3A%22Passed%22%2C%22value%22%3A%22PASSED%22%7D%2C%7B%22label%22%3A%22Failed%22%2C%22value%22%3A%22FAILED%22%7D%5D&tags=%5B%5D&timeInterval=WEEK&timeRange=%7B%22startDate%22%3A%222022-10-10%22%2C%22endDate%22%3A%222022-10-17%22%7D&viewBy=TEST_CASE
Only 3 the last 6 days it seems on master (last one didn't occur anymore):

Looks pretty stable now