Page MenuHomePhabricator
Paste P12118

Output for running tests locally for CirrusSearch
ActivePublic

Authored by Vidhi-Mody on Jul 29 2020, 10:00 AM.
Tags
None
Referenced Files
F31952974: raw.txt
Jul 29 2020, 10:00 AM
Subscribers
None
vidhimody@MacBook-Pro  ~/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch   review/unknown/T257525→origin/master ● ? ↑1 ⍟1  MW_SERVER=https://en.wikipedia.beta.wmflabs.org npm run selenium-test
> cirrussearch@0.0.0 selenium-test /Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch
> wdio tests/selenium/wdio.conf.js
Execution of 1 spec files started at 2020-07-29T09:43:59.568Z
[0-0] RUNNING in chrome - /tests/selenium/specs/smoke_test.js
[0-0]
Screenshot: /Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/selenium/log/Search-suggestions.png
[0-0] Error in "Smoke test for search Search suggestions"
selector needs to be typeof `string` or `function`
[0-0] FAILED in chrome - /tests/selenium/specs/smoke_test.js
"spec" Reporter:
------------------------------------------------------------------
[chrome mac os x #0-0] Spec: /Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/selenium/specs/smoke_test.js
[chrome mac os x #0-0] Running: chrome on mac os x
[chrome mac os x #0-0] Session ID: 8d3b4a2a06e9967e6551794e82ba78d9
[chrome mac os x #0-0]
[chrome mac os x #0-0] Smoke test for search
[chrome mac os x #0-0] ✖ Search suggestions
[chrome mac os x #0-0] ✓ Fill in search term and click search
[chrome mac os x #0-0] ✓ Search with accent yields result page with accent
[chrome mac os x #0-0]
[chrome mac os x #0-0] 2 passing (10.8s)
[chrome mac os x #0-0] 1 failing
[chrome mac os x #0-0]
[chrome mac os x #0-0] 1) Smoke test for search Search suggestions
[chrome mac os x #0-0] selector needs to be typeof `string` or `function`
[chrome mac os x #0-0] Error: selector needs to be typeof `string` or `function`
[chrome mac os x #0-0] at global.$$.selector (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/node_modules/@wdio/runner/build/index.js:194:37)
[chrome mac os x #0-0] at ArticlePage.collect_element_attribute (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/page.js:70:20)
[chrome mac os x #0-0] at ArticlePage.get_search_suggestions (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/article_page.js:39:15)
[chrome mac os x #0-0] at ArticlePage.has_search_suggestions (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/article_page.js:27:15)
[chrome mac os x #0-0] at Context.<anonymous> (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/selenium/specs/smoke_test.js:23:26)
"junit" Reporter:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Smoke_test_for_search" timestamp="2020-07-29T15:14:01" time="10.719" tests="3" failures="0" errors="1" skipped="0">
<properties>
<property name="specId" value="0"/>
<property name="suiteName" value="Smoke test for search"/>
<property name="capabilities" value="chrome.84_0_4147_89.macosx"/>
<property name="file" value="./tests/selenium/specs/smoke_test.js"/>
</properties>
<testcase classname="chrome.84_0_4147_89.macosx.Smoke_test_for_search" name="Search_suggestions" time="4.446">
<error message="selector needs to be typeof `string` or `function`"/>
<system-err>
<![CDATA[
Error: selector needs to be typeof `string` or `function`
at global.$$.selector (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/node_modules/@wdio/runner/build/index.js:194:37)
at ArticlePage.collect_element_attribute (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/page.js:70:20)
at ArticlePage.get_search_suggestions (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/article_page.js:39:15)
at ArticlePage.has_search_suggestions (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/integration/features/support/pages/article_page.js:27:15)
at Context.<anonymous> (/Users/vidhimody/MediaWiki-Vagrant/mediawiki/extensions/CirrusSearch/tests/selenium/specs/smoke_test.js:23:26)
]]>
</system-err>
</testcase>
<testcase classname="chrome.84_0_4147_89.macosx.Smoke_test_for_search" name="Fill_in_search_term_and_click_search" time="3.944"/>
<testcase classname="chrome.84_0_4147_89.macosx.Smoke_test_for_search" name="Search_with_accent_yields_result_page_with_accent" time="2.327"/>
</testsuite>
</testsuites>
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:12