Mailing List Archive

Selenium tests are getting failed for EntitySchema extension
Hi,
I am trying to run selenium test suite for EntitySchema extension. I have followed this
https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/Popups. Some of the test cases
are getting failed.

Logs:
$ npm run selenium-test

> selenium-test
> wdio tests/selenium/wdio.conf.js


Execution of 5 spec files started at 2021-10-27T21:45:50.128Z

[0-0] RUNNING in chrome - /tests/selenium/specs/editSchema.js
[0-0] Error in "Schema Edit Page.given that a user is allowed.returns to schema view page on submit"
Error: element (".entityschema-label") still not displayed after 5000ms
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at ViewSchemaPage.getId (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:66:56)
at Context.<anonymous> (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/specs/editSchema.js:44:19)
[0-0] FAILED in chrome - /tests/selenium/specs/editSchema.js
[0-1] RUNNING in chrome - /tests/selenium/specs/helloworld.js
[0-1] PASSED in chrome - /tests/selenium/specs/helloworld.js
[0-2] RUNNING in chrome - /tests/selenium/specs/special/new.js
[0-2] PASSED in chrome - /tests/selenium/specs/special/new.js
[0-3] RUNNING in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-3] Error in "SetEntitySchemaLabelDescriptionAliasesPage:Page.is possible to edit Schema identifying information"
Error: element (".entityschema-description[lang=en]") still not existing after 5000ms
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at ViewSchemaPage.getDescription (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:33:85)
at Context.<anonymous> (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:48:38)
[0-3] Error in "SetEntitySchemaLabelDescriptionAliasesPage:Page.is possible to edit Schema in another language"
Error: element (".entityschema-description[lang=de]") still not existing after 5000ms
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at ViewSchemaPage.getDescription (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:33:85)
at Context.<anonymous> (/media/saad/sda9/Outreachy-2021-Dec/Wikimedia/mediawiki/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:64:38)
[0-3] FAILED in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-4] RUNNING in chrome - /tests/selenium/specs/viewSchema.js
[0-4] PASSED in chrome - /tests/selenium/specs/viewSchema.js

"dot" Reporter:
..F..............FF...

Spec Files: 3 passed, 2 failed, 5 total (100% completed) in 00:01:14

Any dependencies that I need to add? Any leads would be helpful.

#selenium #EntitySchema #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/
Re: Selenium tests are getting failed for EntitySchema extension [ In reply to ]
Sorry pasted wrong link.

I am following this document https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/EntitySchema.
_______________________________________________
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/