Page MenuHomePhabricator

`Search with accent yields result page with accent` Selenium test fails
Open, Needs TriagePublic

Description

When targeting a local wiki, Search with accent yields result page with accent Selenium test fails. Looks like the page does not exist.

1I have no name!@imac:/CirrusSearch$ npm run @selenium-test
2
3> cirrussearch@0.0.0 @selenium-test
4> wdio tests/selenium/wdio.conf.js
5
6
7Execution of 1 spec files started at 2022-04-15T14:20:23.976Z
8
9[0-0] RUNNING in chrome - /tests/selenium/specs/smoke_test.js
10[0-0]
11 Screenshot: /CirrusSearch/tests/selenium/log/Search-with-accent-yields-result-page-with-accent-2022-04-15T14-21-58-200Z.png
12
13[0-0] AssertionError in "Smoke test for search Search with accent yields result page with accent"
14I am on a page named África
15[0-0] FAILED in chrome - /tests/selenium/specs/smoke_test.js
16
17 "spec" Reporter:
18------------------------------------------------------------------
19[chrome 97.0.4692.99 linux #0-0] Spec: /CirrusSearch/tests/selenium/specs/smoke_test.js
20[chrome 97.0.4692.99 linux #0-0] Running: chrome (v97.0.4692.99) on linux
21[chrome 97.0.4692.99 linux #0-0] Session ID: 43852ad97aeaffc552415d9da8ee43ff
22[chrome 97.0.4692.99 linux #0-0]
23[chrome 97.0.4692.99 linux #0-0] Smoke test for search
24[chrome 97.0.4692.99 linux #0-0] ✓ Search suggestions
25[chrome 97.0.4692.99 linux #0-0] ✓ Fill in search term and click search
26[chrome 97.0.4692.99 linux #0-0] ✖ Search with accent yields result page with accent
27[chrome 97.0.4692.99 linux #0-0]
28[chrome 97.0.4692.99 linux #0-0] 2 passing (3.6s)
29[chrome 97.0.4692.99 linux #0-0] 1 failing
30[chrome 97.0.4692.99 linux #0-0]
31[chrome 97.0.4692.99 linux #0-0] 1) Smoke test for search Search with accent yields result page with accent
32[chrome 97.0.4692.99 linux #0-0] I am on a page named África
33[chrome 97.0.4692.99 linux #0-0] AssertionError [ERR_ASSERTION]: I am on a page named África
34[chrome 97.0.4692.99 linux #0-0] at Context.<anonymous> (/CirrusSearch/tests/selenium/specs/smoke_test.js:54:10)
35
36
37Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:01:34

Search-with-accent-yields-result-page-with-accent-2022-04-15T14-21-58-200Z.png (1×1 px, 53 KB)

Event Timeline

zeljkofilipin renamed this task from 'Search with accent yields result page with accent' Selenium test fails to `Search with accent yields result page with accent` Selenium test fails.Apr 15 2022, 2:26 PM
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin moved this task from Backlog 🪒 to Deep work 🌊 on the User-zeljkofilipin board.

Change 782152 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/extensions/CirrusSearch@master] WIP selenium: Create missing page África

https://gerrit.wikimedia.org/r/782152

After the patch is applied, the test fails with Incomplete login credentials!.

1I have no name!@imac:/CirrusSearch$ npm run @selenium-test
2
3> cirrussearch@0.0.0 @selenium-test
4> wdio tests/selenium/wdio.conf.js
5
6
7Execution of 1 spec files started at 2022-04-15T14:38:15.009Z
8
9[0-0] RUNNING in chrome - /tests/selenium/specs/smoke_test.js
10[0-0]
11 Screenshot: /CirrusSearch/tests/selenium/log/Search-with-accent-yields-result-page-with-accent-2022-04-15T14-38-17-665Z.png
12
13[0-0] Error in "Smoke test for search Search with accent yields result page with accent"
14Incomplete login credentials!
15[0-0] FAILED in chrome - /tests/selenium/specs/smoke_test.js
16
17 "spec" Reporter:
18------------------------------------------------------------------
19[chrome 97.0.4692.99 linux #0-0] Spec: /CirrusSearch/tests/selenium/specs/smoke_test.js
20[chrome 97.0.4692.99 linux #0-0] Running: chrome (v97.0.4692.99) on linux
21[chrome 97.0.4692.99 linux #0-0] Session ID: 4aea7d0294d224e7b3b1cd4b4a74690f
22[chrome 97.0.4692.99 linux #0-0]
23[chrome 97.0.4692.99 linux #0-0] Smoke test for search
24[chrome 97.0.4692.99 linux #0-0] ✓ Search suggestions
25[chrome 97.0.4692.99 linux #0-0] ✓ Fill in search term and click search
26[chrome 97.0.4692.99 linux #0-0] ✖ Search with accent yields result page with accent
27[chrome 97.0.4692.99 linux #0-0]
28[chrome 97.0.4692.99 linux #0-0] 2 passing (2.1s)
29[chrome 97.0.4692.99 linux #0-0] 1 failing
30[chrome 97.0.4692.99 linux #0-0]
31[chrome 97.0.4692.99 linux #0-0] 1) Smoke test for search Search with accent yields result page with accent
32[chrome 97.0.4692.99 linux #0-0] Incomplete login credentials!
33[chrome 97.0.4692.99 linux #0-0] Error: Incomplete login credentials!
34[chrome 97.0.4692.99 linux #0-0] at /CirrusSearch/node_modules/wdio-mediawiki/node_modules/mwbot/src/index.js:302:31
35[chrome 97.0.4692.99 linux #0-0] at Promise.cancellationExecute [as _execute] (/CirrusSearch/node_modules/wdio-mediawiki/node_modules/bluebird/js/release/debuggability.js:406:9)
36[chrome 97.0.4692.99 linux #0-0] at Promise._resolveFromExecutor (/CirrusSearch/node_modules/wdio-mediawiki/node_modules/bluebird/js/release/promise.js:518:18)
37[chrome 97.0.4692.99 linux #0-0] at new Promise (/CirrusSearch/node_modules/wdio-mediawiki/node_modules/bluebird/js/release/promise.js:103:10)
38[chrome 97.0.4692.99 linux #0-0] at MWBot.login (/CirrusSearch/node_modules/wdio-mediawiki/node_modules/mwbot/src/index.js:297:29)
39[chrome 97.0.4692.99 linux #0-0] at MWBot.loginGetEditToken (/CirrusSearch/node_modules/wdio-mediawiki/node_modules/mwbot/src/index.js:461:21)
40[chrome 97.0.4692.99 linux #0-0] at Object.bot (/CirrusSearch/node_modules/wdio-mediawiki/Api.js:23:13)
41[chrome 97.0.4692.99 linux #0-0] at /CirrusSearch/tests/selenium/specs/smoke_test.js:55:26
42[chrome 97.0.4692.99 linux #0-0] at Context.<anonymous> (/CirrusSearch/tests/selenium/specs/smoke_test.js:54:11)
43
44
45Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:03

Change 782152 abandoned by Zfilipin:

[mediawiki/extensions/CirrusSearch@master] WIP selenium: Create missing page África

Reason:

https://gerrit.wikimedia.org/r/782152

zeljkofilipin raised the priority of this task from Medium to Needs Triage.Oct 31 2023, 4:22 PM