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 subscribed.

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?

1pwangai@wmf CodeMirror % npm run selenium-test
2
3> CodeMirror@ selenium-test /Users/pwangai/wiki/core/extensions/CodeMirror
4> wdio tests/selenium/wdio.conf.js
5
6
7Execution of 2 spec files started at 2023-02-06T14:15:23.016Z
8
9[0-0] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2010.js
10[0-0] AssertionError [ERR_ASSERTION] in "CodeMirror bracket match highlighting for the wikitext 2010 editor.highlights matching bracket"
11AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
12+ expected - actual
13
14- ''
15+ '[]'
16 at Context.<anonymous> (/Users/pwangai/wiki/core/extensions/CodeMirror/tests/selenium/specs/highlighting-wikitext2010.js:24:10)
17[0-0] AssertionError [ERR_ASSERTION] in "CodeMirror bracket match highlighting for the wikitext 2010 editor.matches according to cursor movement"
18AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
19+ expected - actual
20
21- ''
22+ '{}'
23 at Context.<anonymous> (/Users/pwangai/wiki/core/extensions/CodeMirror/tests/selenium/specs/highlighting-wikitext2010.js:31:10)
24[0-0] RETRYING in chrome - /tests/selenium/specs/highlighting-wikitext2010.js
25[0-0] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2010.js
26[0-0] AssertionError [ERR_ASSERTION] in "CodeMirror bracket match highlighting for the wikitext 2010 editor.highlights matching bracket"
27AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
28+ expected - actual
29
30- ''
31+ '[]'
32 at Context.<anonymous> (/Users/pwangai/wiki/core/extensions/CodeMirror/tests/selenium/specs/highlighting-wikitext2010.js:24:10)
33[0-0] AssertionError [ERR_ASSERTION] in "CodeMirror bracket match highlighting for the wikitext 2010 editor.matches according to cursor movement"
34AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
35+ expected - actual
36
37- ''
38+ '{}'
39 at Context.<anonymous> (/Users/pwangai/wiki/core/extensions/CodeMirror/tests/selenium/specs/highlighting-wikitext2010.js:31:10)
40[0-0] FAILED in chrome - /tests/selenium/specs/highlighting-wikitext2010.js (1 retries)
41[0-1] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2017.js
42[0-1] RETRYING in chrome - /tests/selenium/specs/highlighting-wikitext2017.js
43[0-1] RUNNING in chrome - /tests/selenium/specs/highlighting-wikitext2017.js
44[0-1] FAILED in chrome - /tests/selenium/specs/highlighting-wikitext2017.js (1 retries)
45
46 "dot" Reporter:
47FFFF
48
49Spec Files: 0 passed, 2 retries, 2 failed, 2 total (100% completed) in 00:01:13
50
51npm ERR! code ELIFECYCLE
52npm ERR! errno 1
53npm ERR! CodeMirror@ selenium-test: `wdio tests/selenium/wdio.conf.js`
54npm ERR! Exit status 1
55npm ERR!
56npm ERR! Failed at the CodeMirror@ selenium-test script.
57npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
58
59npm ERR! A complete log of this run can be found in:
60npm ERR! /Users/pwangai/.npm/_logs/2023-02-06T14_16_36_598Z-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.