The highlighting-wikitext2017.js test often fails with either or both of:
20:19:04 [0-2] Error in "CodeMirror (enabled) - VisualEditor 2017 wikitext editor.opens with the CodeMirror view displayed and focus set on the VE surface"
20:19:04 Error: element (".ve-ce-attachedRootNode") still not displayed after 5000ms
20:19:04 at async Context.<anonymous> (/workspace/src/extensions/CodeMirror/tests/selenium/specs/highlighting-wikitext2017.js:23:3)or
20:19:35 [0-2] Error in "CodeMirror (enabled) - VisualEditor 2017 wikitext editor.should only load necessary modules when the CodeMirror preference is unset" 20:19:35 net::ERR_ABORTED at http://127.0.0.1:9413//index.php?uselang=en&title=Special%3ABlankPage 20:19:35 Error: net::ERR_ABORTED at http://127.0.0.1:9413//index.php?uselang=en&title=Special%3ABlankPage
Note we've always had issues with the Selenium tests for the 2017 editor (r1012801).
In this case it seems to only happen for the "only load necessary modules…" test case. I suspect ERR_ABORTED is something to do with the page refreshing before the API request to update the user preference finishes. However, we're doing this in the same way as when we set preferences in the beforeEach() hook, and other test cases involve page refreshes as well, so it's a bit of a mystery as to what exactly is going wrong.