Page MenuHomePhabricator

Fix MediaWiki-Docker/Extension/CodeMirror
Open, Needs TriagePublic

Description

This is a microtask for T256239: Create MediaWiki-Docker documentation for all repositories with Selenium tests. See that task for more information and how to get help.

  • If you are working on this task, assign it to yourself, so others know it's already taken.
  • Read the MediaWiki-Docker documentation for the repository: MediaWiki-Docker/Extension/CodeMirror.
  • Set up the repository on your machine.
  • Run Selenium tests.
  • Read the repository documentation: Extension:CodeMirror.
  • You might need to read repository source code: CodeMirror.
  • You might need to contact developers of the repository. Developers/Maintainers lists which team is in charge of which repository.
  • Find what's missing from the MediaWiki-Docker documentation for the repository. Update the page. If the Selenium tests pass, you're done.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hey @MusikAnimal am an applicant trying to edit the code mirror extension. I tried setting it up locally and used visual editor as the other extension and on running the tests am encountering this error. kindly advise, thankyou.

Lykarungi added a subscriber: Lykarungi.

I have updated the documentation and added dependencies for CodeMirror repository. Paste for the test suite can be found here P17635

One test is still failing for me. Are you sure you've documented everything?

1I have no name!@imac:/CodeMirror$ npm run selenium-test
2
3> @ selenium-test /CodeMirror
4> wdio tests/selenium/wdio.conf.js
5
6
7Execution of 3 spec files started at 2021-11-23T15:44:40.524Z
8
9(node:399) ExperimentalWarning: The dns.promises API is experimental
10(node:399) ExperimentalWarning: The fs.promises API is experimental
11[0-0] (node:408) ExperimentalWarning: The dns.promises API is experimental
12[0-0] (node:408) ExperimentalWarning: The fs.promises API is experimental
13[0-0] RUNNING in chrome - /tests/selenium/specs/highlighting-disabled.js
14[0-0] PASSED in chrome - /tests/selenium/specs/highlighting-disabled.js
15[0-1] (node:512) ExperimentalWarning: The dns.promises API is experimental
16[0-1] (node:512) ExperimentalWarning: The fs.promises API is experimental
17[0-1] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2010.js
18[0-1] PASSED in chrome - /tests/selenium/specs/highlighting-wikitext2010.js
19[0-2] (node:617) ExperimentalWarning: The dns.promises API is experimental
20[0-2] (node:617) ExperimentalWarning: The fs.promises API is experimental
21[0-2] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2017.js
22[0-2] AssertionError [ERR_ASSERTION] in "CodeMirror bracket match highlighting for the wikitext 2017 editor.matches according to cursor movement"
23AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
24+ expected - actual
25
26- ''
27+ '{}'
28 at Context.<anonymous> (/CodeMirror/tests/selenium/specs/highlighting-wikitext2017.js:34:10)
29[0-2] FAILED in chrome - /tests/selenium/specs/highlighting-wikitext2017.js
30
31 "dot" Reporter:
32....F
33
34Spec Files: 2 passed, 1 failed, 3 total (100% completed) in 00:00:23
35
36npm ERR! code ELIFECYCLE
37npm ERR! errno 1
38npm ERR! @ selenium-test: `wdio tests/selenium/wdio.conf.js`
39npm ERR! Exit status 1
40npm ERR!
41npm ERR! Failed at the @ selenium-test script.
42npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
43
44npm ERR! A complete log of this run can be found in:
45npm ERR! /cache/_logs/2021-11-23T15_45_03_958Z-debug.log

Hey @MusikAnimal am an applicant trying to edit the code mirror extension. I tried setting it up locally and used visual editor as the other extension and on running the tests am encountering this error. kindly advise, thankyou.

I believe the Selenium tests were added WMDE (i.e. T270240). I have never ran them myself, nor has Community Tech touched this extension in quite some time. Hopefully they can help. Sorry!

Hey @MusikAnimal am an applicant trying to edit the code mirror extension. I tried setting it up locally and used visual editor as the other extension and on running the tests am encountering this error. kindly advise, thankyou.

I believe the Selenium tests were added WMDE (i.e. T270240). I have never ran them myself, nor has Community Tech touched this extension in quite some time. Hopefully they can help. Sorry!

Thank you, will look into it.

zeljkofilipin added a subscriber: AghaSaad04.

Removing @AghaSaad04 as the assignee since I did not get confirmation on Zulip that they are still working on it. Feel free to assign it back to you if you plan to work on it.