Page MenuHomePhabricator

Error in Popups extension upgrading to WebdriverIO 5
Closed, InvalidPublic

Description

I have solved most of the errors and one out of two specs files are running successfully, and am unable to solve the other.
Here is the selenium output of jenkins-bot
Here is the Gerrit commit link
Popups

13:06:35 > @ selenium-test /workspace/src/extensions/Popups
13:06:35 > wdio tests/selenium/wdio.conf.js
13:06:35 
13:06:36 
13:06:36 Execution of 2 spec files started at 2020-04-19T07:36:36.913Z
13:06:36 
13:06:38 [0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js
13:06:39 INFO:backend.DevWebServer:[Sun Apr 19 07:36:39 2020] 127.0.0.1:43392 [200]: //api.php?format=json
13:06:39 INFO:backend.DevWebServer:[Sun Apr 19 07:36:39 2020] 127.0.0.1:43394 [200]: //api.php?format=json
13:06:39 [0-0] [07:36:39] [S] [MWBOT] Login successful: WikiAdmin@http://127.0.0.1:9412/
13:06:39 INFO:backend.DevWebServer:[Sun Apr 19 07:36:39 2020] 127.0.0.1:43396 [200]: //api.php?format=json
13:06:39 INFO:backend.DevWebServer:[Sun Apr 19 07:36:39 2020] 127.0.0.1:43398 [200]: //api.php?format=json
13:06:39 INFO:backend.DevWebServer:[Sun Apr 19 07:36:39 2020] 127.0.0.1:43400 [200]: //api.php?format=json
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43402 [200]: //api.php?format=json
13:06:40 [0-0] [07:36:40] [S] [MWBOT] Login successful: WikiAdmin@http://127.0.0.1:9412/
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43404 [200]: //api.php?format=json
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43406 [200]: //api.php?format=json
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43408 [301]: //index.php?title=Popups%20test%20page
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43410 [200]: /index.php/Popups_test_page
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43412 [200]: /load.php?lang=en&modules=ext.cite.styles%7Cext.flaggedRevs.basic%2Cicons%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles&only=styles&skin=vector
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43414 [200]: /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43426 [200]: /load.php?lang=en&modules=ext.visualEditor.core.utils.parsing%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.progressBarWidget%2CsupportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve&skin=vector&version=1c0o0
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43428 [200]: /load.php?lang=en&modules=ext.cite.ux-enhancements%7Cext.eventLogging%2Cpopups%7Cext.flaggedRevs.advanced%7Cjquery%2Csite%7Cjquery.client%2Ccookie%2CtextSelection%7Cmediawiki.String%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Cstorage%2Cuser%2Cutil%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=18wod
13:06:40 INFO:backend.DevWebServer:[Sun Apr 19 07:36:40 2020] 127.0.0.1:43430 [404]: /favicon.ico - No such file or directory
13:06:41 INFO:backend.DevWebServer:[Sun Apr 19 07:36:41 2020] 127.0.0.1:43432 [200]: /load.php?lang=en&modules=ext.popups.images%2Cmain%7Cmediawiki.experiments%7Cmediawiki.ui.button%2Cicon&skin=vector&version=1m27i
13:06:41 [0-0] 
13:06:41 	Screenshot location: /workspace/log/Dwelling-on-a-valid-page-link-I-should-see-a-page-preview.png 
13:06:41 
13:06:41 [0-0] stale element reference in "Dwelling on a valid page link I should see a page preview"
13:06:41 stale element reference: element is not attached to the page document
13:06:41   (Session info: chrome=73.0.3683.75)
13:06:41   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:41 INFO:backend.DevWebServer:[Sun Apr 19 07:36:41 2020] 127.0.0.1:43434 [301]: //index.php?title=Popups%20test%20page
13:06:41 INFO:backend.DevWebServer:[Sun Apr 19 07:36:41 2020] 127.0.0.1:43436 [200]: /index.php/Popups_test_page
13:06:42 [0-0] 
13:06:42 	Screenshot location: /workspace/log/Dwelling-on-a-valid-page-link-Abandoning-link-hides-page-preview.png 
13:06:42 
13:06:42 [0-0] stale element reference in "Dwelling on a valid page link Abandoning link hides page preview"
13:06:42 stale element reference: element is not attached to the page document
13:06:42   (Session info: chrome=73.0.3683.75)
13:06:42   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:42 INFO:backend.DevWebServer:[Sun Apr 19 07:36:42 2020] 127.0.0.1:43448 [301]: //index.php?title=Popups%20test%20page
13:06:42 INFO:backend.DevWebServer:[Sun Apr 19 07:36:42 2020] 127.0.0.1:43450 [200]: /index.php/Popups_test_page
13:06:43 [0-0] 
13:06:43 	Screenshot location: /workspace/log/Dwelling-on-a-valid-page-link-Quickly-hovering%2C-abandoning-and-re-hovering-a-link-shows-page-preview.png 
13:06:43 
13:06:43 [0-0] stale element reference in "Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview"
13:06:43 stale element reference: element is not attached to the page document
13:06:43   (Session info: chrome=73.0.3683.75)
13:06:43   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:43 [0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js
13:06:44 [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js
13:06:45 INFO:backend.DevWebServer:[Sun Apr 19 07:36:45 2020] 127.0.0.1:43472 [200]: //api.php?format=json
13:06:45 INFO:backend.DevWebServer:[Sun Apr 19 07:36:45 2020] 127.0.0.1:43474 [200]: //api.php?format=json
13:06:45 [0-1] [07:36:45] [S] [MWBOT] Login successful: WikiAdmin@http://127.0.0.1:9412/
13:06:45 INFO:backend.DevWebServer:[Sun Apr 19 07:36:45 2020] 127.0.0.1:43476 [200]: //api.php?format=json
13:06:45 INFO:backend.DevWebServer:[Sun Apr 19 07:36:45 2020] 127.0.0.1:43478 [200]: //api.php?format=json
13:06:45 INFO:backend.DevWebServer:[Sun Apr 19 07:36:45 2020] 127.0.0.1:43480 [200]: //api.php?format=json
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43482 [200]: //api.php?format=json
13:06:46 [0-1] [07:36:46] [S] [MWBOT] Login successful: WikiAdmin@http://127.0.0.1:9412/
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43484 [200]: //api.php?format=json
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43486 [200]: //api.php?format=json
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43488 [301]: //index.php?title=Popups%20test%20page
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43490 [200]: /index.php/Popups_test_page
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43492 [200]: /load.php?lang=en&modules=ext.cite.styles%7Cext.flaggedRevs.basic%2Cicons%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles&only=styles&skin=vector
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43494 [200]: /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43506 [200]: /load.php?lang=en&modules=ext.visualEditor.core.utils.parsing%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.progressBarWidget%2CsupportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve&skin=vector&version=1c0o0
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43508 [200]: /load.php?lang=en&modules=ext.cite.ux-enhancements%7Cext.eventLogging%2Cpopups%7Cext.flaggedRevs.advanced%7Cjquery%2Csite%7Cjquery.client%2Ccookie%2CtextSelection%7Cmediawiki.String%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Cstorage%2Cuser%2Cutil%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=18wod
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43510 [404]: /favicon.ico - No such file or directory
13:06:46 INFO:backend.DevWebServer:[Sun Apr 19 07:36:46 2020] 127.0.0.1:43512 [200]: /load.php?lang=en&modules=ext.popups.images%2Cmain%7Cmediawiki.experiments%7Cmediawiki.ui.button%2Cicon&skin=vector&version=y2hwc
13:06:47 [0-1] 
13:06:47 	Screenshot location: /workspace/log/Dwelling-on-a-valid-reference-link-I-should-see-a-reference-preview.png 
13:06:47 
13:06:47 INFO:backend.DevWebServer:[Sun Apr 19 07:36:47 2020] 127.0.0.1:43514 [301]: //index.php?title=Popups%20test%20page
13:06:47 INFO:backend.DevWebServer:[Sun Apr 19 07:36:47 2020] 127.0.0.1:43516 [200]: /index.php/Popups_test_page
13:06:47 [0-1] 
13:06:47 	Screenshot location: /workspace/log/Dwelling-on-a-valid-reference-link-Abandoning-link-hides-reference-preview.png 
13:06:47 
13:06:47 INFO:backend.DevWebServer:[Sun Apr 19 07:36:47 2020] 127.0.0.1:43528 [301]: //index.php?title=Popups%20test%20page
13:06:48 INFO:backend.DevWebServer:[Sun Apr 19 07:36:48 2020] 127.0.0.1:43530 [200]: /index.php/Popups_test_page
13:06:48 [0-1] 
13:06:48 	Screenshot location: /workspace/log/Dwelling-on-a-valid-reference-link-References-with-lots-of-text-are-scrollable-and-fades.png 
13:06:48 
13:06:48 INFO:backend.DevWebServer:[Sun Apr 19 07:36:48 2020] 127.0.0.1:43542 [301]: //index.php?title=Popups%20test%20page
13:06:48 INFO:backend.DevWebServer:[Sun Apr 19 07:36:48 2020] 127.0.0.1:43544 [200]: /index.php/Popups_test_page
13:06:49 [0-1] 
13:06:49 	Screenshot location: /workspace/log/Dwelling-on-a-valid-reference-link-Dwelling-references-links-inside-reference-previews-does-not-close-the-popup-.png 
13:06:49 
13:06:49 [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js
13:06:49 
13:06:49  "spec" Reporter:
13:06:49 ------------------------------------------------------------------
13:06:49 [chrome 73.0.3683.75 Linux #0-0] Spec: /workspace/src/extensions/Popups/tests/selenium/specs/page_previews.js
13:06:49 [chrome 73.0.3683.75 Linux #0-0] Running: chrome (v73.0.3683.75) on Linux
13:06:49 [chrome 73.0.3683.75 Linux #0-0] Session ID: 875068b8bdff489b677f682107564c9c
13:06:49 [chrome 73.0.3683.75 Linux #0-0]
13:06:49 [chrome 73.0.3683.75 Linux #0-0] Dwelling on a valid page link
13:06:49 [chrome 73.0.3683.75 Linux #0-0]    ✖ I should see a page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0]    ✖ Abandoning link hides page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0]    ✖ Quickly hovering, abandoning and re-hovering a link shows page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0]
13:06:49 [chrome 73.0.3683.75 Linux #0-0] 3 failing (4.8s)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]
13:06:49 [chrome 73.0.3683.75 Linux #0-0] 1) Dwelling on a valid page link I should see a page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49   (Session info: chrome=73.0.3683.75)
13:06:49   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Session info: chrome=73.0.3683.75)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at endReadableNT (_stream_readable.js:1103:12)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at PopupsPage.dwellLink (/workspace/src/extensions/Popups/tests/selenium/pageobjects/popups.page.js:68:11)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at PopupsPage.dwellPageLink (/workspace/src/extensions/Popups/tests/selenium/pageobjects/popups.page.js:73:8)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at Context.<anonymous> (/workspace/src/extensions/Popups/tests/selenium/specs/page_previews.js:15:8)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]
13:06:49 [chrome 73.0.3683.75 Linux #0-0] 2) Dwelling on a valid page link Abandoning link hides page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49   (Session info: chrome=73.0.3683.75)
13:06:49   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Session info: chrome=73.0.3683.75)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at endReadableNT (_stream_readable.js:1103:12)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at PopupsPage.dwellLink (/workspace/src/extensions/Popups/tests/selenium/pageobjects/popups.page.js:68:11)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at PopupsPage.dwellPageLink (/workspace/src/extensions/Popups/tests/selenium/pageobjects/popups.page.js:73:8)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at Context.<anonymous> (/workspace/src/extensions/Popups/tests/selenium/specs/page_previews.js:20:8)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]
13:06:49 [chrome 73.0.3683.75 Linux #0-0] 3) Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49   (Session info: chrome=73.0.3683.75)
13:06:49   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0] stale element reference: element is not attached to the page document
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Session info: chrome=73.0.3683.75)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at endReadableNT (_stream_readable.js:1103:12)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at PopupsPage.hoverPageLink (/workspace/src/extensions/Popups/tests/selenium/pageobjects/popups.page.js:77:11)
13:06:49 [chrome 73.0.3683.75 Linux #0-0]     at Context.<anonymous> (/workspace/src/extensions/Popups/tests/selenium/specs/page_previews.js:26:8)
13:06:49 ------------------------------------------------------------------
13:06:49 [chrome 73.0.3683.75 Linux #0-1] Spec: /workspace/src/extensions/Popups/tests/selenium/specs/reference_previews.js
13:06:49 [chrome 73.0.3683.75 Linux #0-1] Running: chrome (v73.0.3683.75) on Linux
13:06:49 [chrome 73.0.3683.75 Linux #0-1] Session ID: 5c22bb4359829d82f1d7dbe05b966b61
13:06:49 [chrome 73.0.3683.75 Linux #0-1]
13:06:49 [chrome 73.0.3683.75 Linux #0-1] Dwelling on a valid reference link
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    ? I should see a reference preview
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    - I should see a reference preview
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    ? Abandoning link hides reference preview
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    - Abandoning link hides reference preview
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    ? References with lots of text are scrollable and fades
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    - References with lots of text are scrollable and fades
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    ? Dwelling references links inside reference previews does not close the popup 
13:06:49 [chrome 73.0.3683.75 Linux #0-1]    - Dwelling references links inside reference previews does not close the popup 
13:06:49 [chrome 73.0.3683.75 Linux #0-1]
13:06:49 [chrome 73.0.3683.75 Linux #0-1] 4 skipped (4.5s)
13:06:49 
13:06:49 
13:06:49 Spec Files:	 1 passed, 1 failed, 2 total (100% completed) in 00:00:12 
13:06:49 
13:06:49 npm ERR! code ELIFECYCLE
13:06:49 npm ERR! errno 1
13:06:49 npm ERR! @ selenium-test: `wdio tests/selenium/wdio.conf.js`
13:06:49 npm ERR! Exit status 1
13:06:49 npm ERR! 
13:06:49 npm ERR! Failed at the @ selenium-test script.
13:06:49 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
13:06:49 
13:06:49 npm ERR! A complete log of this run can be found in:
13:06:49 npm ERR!     /cache/npm/_logs/2020-04-19T07_36_49_945Z-debug.log
13:06:49 INFO:backend.ChromeWebDriver:Terminating ChromeWebDriver
13:06:49 INFO:backend.Xvfb:Terminating Xvfb
13:06:49 INFO:backend.DevWebServer:Terminating DevWebServer
13:06:49 INFO:quibble.cmd:<<< Finish: Browser tests using DISPLAY=Xvfb, for projects mediawiki/extensions/Popups, mediawiki/core, mediawiki/extensions/BetaFeatures, mediawiki/extensions/Cite, mediawiki/extensions/ConfirmEdit, mediawiki/extensions/EventLogging, mediawiki/extensions/EventStreamConfig, mediawiki/extensions/FlaggedRevs, mediawiki/extensions/PageImages, mediawiki/extensions/ParserFunctions, mediawiki/extensions/Scribunto, mediawiki/extensions/SyntaxHighlight_GeSHi, mediawiki/extensions/TemplateData, mediawiki/extensions/TextExtracts, mediawiki/extensions/VisualEditor, mediawiki/skins/Vector, mediawiki/vendor, in 44.577 s
13:06:49 Traceback (most recent call last):
13:06:49   File "/usr/local/bin/quibble", line 11, in <module>
13:06:49     load_entry_point('quibble==0.0.41', 'console_scripts', 'quibble')()
13:06:49   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 482, in main
13:06:49     cmd.execute(plan)
13:06:49   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 304, in execute
13:06:49     command.execute()
13:06:49   File "/usr/local/lib/python3.5/dist-packages/quibble/commands.py", line 690, in execute
13:06:49     self.run_selenium()
13:06:49   File "/usr/local/lib/python3.5/dist-packages/quibble/commands.py", line 706, in run_selenium
13:06:49     self.run_webdriver(project_dir)
13:06:49   File "/usr/local/lib/python3.5/dist-packages/quibble/commands.py", line 725, in run_webdriver
13:06:49     env=webdriver_env)
13:06:49   File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
13:06:49     raise CalledProcessError(retcode, cmd)
13:06:49 subprocess.CalledProcessError: Command '['npm', 'run', 'selenium-test']' returned non-zero exit status 1
13:06:49 INFO:backend.MySQL:Terminating MySQL

Event Timeline

Aklapper renamed this task from Error in Popups Extension Upgradation to Error in Popups extension upgrading to WebdriverIO 5.Apr 19 2020, 11:39 AM

@Ashuro07 did you check if there are any updates that need to be made in specs?

@Vidhi-Mody
I think I have updated all the necessary commands,

Ashuro07 removed a subscriber: Ashuro07.