Page MenuHomePhabricator
Paste P16641

Test verification for popups
ActivePublic

Authored by Sahilgrewalhere on Jun 18 2021, 2:25 PM.
Tags
None
Referenced Files
F34512002: Test verification for popups
Jun 18 2021, 3:50 PM
F34511833: Test verification for popups
Jun 18 2021, 2:25 PM
Subscribers
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/Popups$ npm audit fix
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated iltorb@2.4.5: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
npm WARN @babel/helper-define-polyfill-provider@0.2.0 requires a peer of @babel/core@^7.4.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-proposal-class-static-block@7.13.11 requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
+ @wikimedia/mw-node-qunit@6.2.1
+ bundlesize@0.18.1
+ jsdoc@3.6.7
+ jquery@3.6.0
added 73 packages from 30 contributors, removed 8 packages and updated 18 packages in 48.189s
183 packages are looking for funding
run `npm fund` for details
fixed 94 of 109 vulnerabilities in 2431 scanned packages
2 vulnerabilities required manual review and could not be updated
5 package updates for 13 vulnerabilities involved breaking changes
(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/Popups$ npm run selenium-test
> @ selenium-test /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups
> wdio tests/selenium/wdio.conf.js
Execution of 2 spec files started at 2021-06-18T15:49:22.671Z
[0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js
[0-0] ReferenceError in "Dwelling on a valid page link "before all" hook for "I should see a page preview""
ReferenceError: regeneratorRuntime is not defined
at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9
at makePage (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9)
at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:37:11
at PopupsPage.setup (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:33:11)
at Context.<anonymous> (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/specs/page_previews.js:8:8)
[0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js
[0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js
[0-1] ReferenceError in "Dwelling on a valid reference link "before all" hook for "I should see a reference preview""
ReferenceError: regeneratorRuntime is not defined
at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9
at makePage (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9)
at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:37:11
at PopupsPage.setup (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:33:11)
at Context.<anonymous> (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/specs/reference_previews.js:9:8)
[0-1] FAILED in chrome - /tests/selenium/specs/reference_previews.js
"spec" Reporter:
------------------------------------------------------------------
[Chrome 90.0.4430.93 linux #0-0] Running: Chrome (v90.0.4430.93) on linux
[Chrome 90.0.4430.93 linux #0-0] Session ID: a528c79d-9d45-4d07-81b1-4d83b1fa51d2
[Chrome 90.0.4430.93 linux #0-0]
[Chrome 90.0.4430.93 linux #0-0] » /tests/selenium/specs/page_previews.js
[Chrome 90.0.4430.93 linux #0-0] Dwelling on a valid page link
[Chrome 90.0.4430.93 linux #0-0] ✖ "before all" hook for Dwelling on a valid page link
[Chrome 90.0.4430.93 linux #0-0]
[Chrome 90.0.4430.93 linux #0-0] 1 failing (41ms)
[Chrome 90.0.4430.93 linux #0-0]
[Chrome 90.0.4430.93 linux #0-0] 1) Dwelling on a valid page link "before all" hook for Dwelling on a valid page link
[Chrome 90.0.4430.93 linux #0-0] regeneratorRuntime is not defined
[Chrome 90.0.4430.93 linux #0-0] ReferenceError: regeneratorRuntime is not defined
[Chrome 90.0.4430.93 linux #0-0] at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9
[Chrome 90.0.4430.93 linux #0-0] at makePage (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9)
[Chrome 90.0.4430.93 linux #0-0] at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:37:11
[Chrome 90.0.4430.93 linux #0-0] at PopupsPage.setup (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:33:11)
[Chrome 90.0.4430.93 linux #0-0] at Context.<anonymous> (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/specs/page_previews.js:8:8)
------------------------------------------------------------------
[Chrome 90.0.4430.93 linux #0-1] Running: Chrome (v90.0.4430.93) on linux
[Chrome 90.0.4430.93 linux #0-1] Session ID: 5a7fb82a-d0e1-4152-a658-ddf6d1a8ddba
[Chrome 90.0.4430.93 linux #0-1]
[Chrome 90.0.4430.93 linux #0-1] » /tests/selenium/specs/reference_previews.js
[Chrome 90.0.4430.93 linux #0-1] Dwelling on a valid reference link
[Chrome 90.0.4430.93 linux #0-1] ✖ "before all" hook for Dwelling on a valid reference link
[Chrome 90.0.4430.93 linux #0-1]
[Chrome 90.0.4430.93 linux #0-1] 1 failing (28ms)
[Chrome 90.0.4430.93 linux #0-1]
[Chrome 90.0.4430.93 linux #0-1] 1) Dwelling on a valid reference link "before all" hook for Dwelling on a valid reference link
[Chrome 90.0.4430.93 linux #0-1] regeneratorRuntime is not defined
[Chrome 90.0.4430.93 linux #0-1] ReferenceError: regeneratorRuntime is not defined
[Chrome 90.0.4430.93 linux #0-1] at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9
[Chrome 90.0.4430.93 linux #0-1] at makePage (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:19:9)
[Chrome 90.0.4430.93 linux #0-1] at /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:37:11
[Chrome 90.0.4430.93 linux #0-1] at PopupsPage.setup (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/pageobjects/popups.page.js:33:11)
[Chrome 90.0.4430.93 linux #0-1] at Context.<anonymous> (/home/sahil/Desktop/newmedi/mediawiki/extensions/Popups/tests/selenium/specs/reference_previews.js:9:8)
Spec Files: 0 passed, 2 failed, 2 total (100% completed) in 00:00:03
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ selenium-test: `wdio tests/selenium/wdio.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ selenium-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sahil/.npm/_logs/2021-06-18T15_49_26_919Z-debug.log

Event Timeline

I guess the error in CI is due to a peer dependency for babel......What are your reviews ?

sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/Popups$ nvm use node 12
Now using node v12.21.0 (npm v6.14.11)
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/Popups$ npm run test

@ test /home/sahil/Desktop/newmedi/mediawiki/extensions/Popups
npm -s run check-built-assets && npm run test:lint && bash ./dev-scripts/svg_check.sh && npm -s run coverage && npm -s run -s doc && bundlesize && npm run build-storybook

CHECKING BUILD SOURCES ARE COMMITTED OR STAGED
(node:46378) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Built at: 06/18/2021 10:07:14 PM
diff --git a/resources/dist/index.js b/resources/dist/index.js
index dead3e56..9bb84666 100644
Binary files a/resources/dist/index.js and b/resources/dist/index.js differ
diff --git a/resources/dist/index.js.map.json b/resources/dist/index.js.map.json
index 813048d1..4512001a 100644
Binary files a/resources/dist/index.js.map.json and b/resources/dist/index.js.map.json differ
v12.21.0
6.14.11
Please ensure you are running the correct version of nvm before running this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ test: npm -s run check-built-assets && npm run test:lint && bash ./dev-scripts/svg_check.sh && npm -s run coverage && npm -s run -s doc && bundlesize && npm run build-storybook
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/sahil/.npm/_logs/2021-06-18T16_37_14_685Z-debug.log
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/Popups$

@zeljkofilipin So selenium tests are passing now, but stucked here pls help!😅