Hi,
I am trying to run selenium test suite for Popups extension. I have followed this https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/Popups. Some of the test cases are getting failed.
[0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link I should see a page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/core/extensions/Popups/tests/selenium/specs/page_previews.js:18:3) [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/core/extensions/Popups/tests/selenium/specs/page_previews.js:31:3) [0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js [0-1] (node:6255) ExperimentalWarning: The dns.promises API is experimental [0-1] (node:6255) ExperimentalWarning: The fs.promises API is experimental [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js
"dot" Reporter: F.F....
Spec Files: 1 passed, 1 failed, 2 total (100% completed) in 00:00:55
Any dependencies that I need to add?
#selenium #Popups #extensions #testsuite #testcases
Hi,
it seems that the instructions on the docker page a incomplete. I think you also need Extension:TextExtracts https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TextExtracts and Extension:PageImages https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:PageImages installed see Extension:Popups#Dependencies https://www.mediawiki.org/wiki/Extension:Popups#Dependencies.
So clone these two to your extension directory and load them in the LocalSettings.php - I think they must be added there before you load the Popups extension.
Hope that helps, if it works you could update the docker help page. ( or just poke and I do it ;-) )
best Fisch
Am Di., 26. Okt. 2021 um 16:27 Uhr schrieb agha.saad04@gmail.com:
Hi,
I am trying to run selenium test suite for Popups extension. I have followed this https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/Popups. Some of the test cases are getting failed.
[0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link I should see a page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/core/extensions/Popups/tests/selenium/specs/page_previews.js:18:3) [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/core/extensions/Popups/tests/selenium/specs/page_previews.js:31:3) [0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js [0-1] (node:6255) ExperimentalWarning: The dns.promises API is experimental [0-1] (node:6255) ExperimentalWarning: The fs.promises API is experimental [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js
"dot" Reporter: F.F....
Spec Files: 1 passed, 1 failed, 2 total (100% completed) in 00:00:55
Any dependencies that I need to add?
#selenium #Popups #extensions #testsuite #testcases _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Hi Christopher, Thanks for the quick response. I have installed the two dependencies that are PageImages and TextExtracts and also added them in LocalSettings.php file but still facing the same.
Execution of 2 spec files started at 2021-10-27T09:03:43.737Z
[0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js [0-0] AssertionError in "Dwelling on a valid page link I should see a page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/mediawiki/extensions/Popups/tests/selenium/specs/page_previews.js:18:3) [0-0] AssertionError in "Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context.<anonymous> (/mediawiki/extensions/Popups/tests/selenium/specs/page_previews.js:31:3) [0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js
"dot" Reporter: F.F....
Spec Files: 1 passed, 1 failed, 2 total (100% completed) in 00:00:21.
Let me know If I need to update anything else. Thanks
Hi,
I have made a few more changes and now test cases are getting passed.
$ npm run selenium-test
selenium-test wdio tests/selenium/wdio.conf.js
Execution of 2 spec files started at 2021-10-27T11:43:14.577Z
[0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js [0-0] PASSED in chrome - /tests/selenium/specs/page_previews.js [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js
"dot" Reporter: .......
Spec Files: 2 passed, 2 total (100% completed) in 00:00:18.
Thanks for your help. I have also updated the docs https://www.mediawiki.org/w/index.php?title=MediaWiki-Docker/Extension/Popup....
Cheers, Agha Saad
wikitech-l@lists.wikimedia.org