Bug #44007
mgr/dashboard: e2e error on "create, edit & delete image test"
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Testing & QA
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
This error happens in recent Dashboard tests:
https://jenkins.ceph.com/job/ceph-dashboard-pull-requests/3175/console
https://jenkins.ceph.com/job/ceph-dashboard-pull-requests/3174/console
https://jenkins.ceph.com/job/ceph-dashboard-pull-requests/3171/console
Creating reporter at .protractor-report/ Jasmine started Images page breadcrumb and tab tests [32m✓ should open and show breadcrumb[39m (0.156 sec) [32m✓ should show four tabs[39m (0.049 sec) [32m✓ should show text for all tabs[39m (0.266 sec) (node:31400) UnhandledPromiseRejectionWarning: NoSuchElementError: No element found using locator: by.cssContainingText(".select-menu-item-content", "rbd") at elementArrayFinder.getWebElements.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:814:27) at process._tickCallback (internal/process/next_tick.js:68:7)Error: at ElementArrayFinder.applyAction_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:459:27) at ElementArrayFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:91:29) at ElementFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:831:22) at PoolPageHelper.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.po.ts:83:92) at step (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:136:27) at Object.next (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:117:57) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:110:75 at new Promise (<anonymous>) at Object.__awaiter (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:106:16) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.po.ts:83:17 (node:31400) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:31400) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. log: [ Entry { level: Level { name_: 'SEVERE', value_: 1000 }, message: 'https://bionic-huge--f7ec096e-8aaf-4e21-a3fd-8e8131dab750:41343/polyfills.js 180:24 Uncaught Error: Control \'filter\' could not be found!', timestamp: 1580965674361, type: '' } ] create, edit & delete image test [31m✗ should create image[39m (0.995 sec) [31m- [39m[31mFailed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")[39m at elementArrayFinder.getWebElements.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:814:27) at process._tickCallback (internal/process/next_tick.js:68:7)Error: at ElementArrayFinder.applyAction_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:459:27) at ElementArrayFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:91:29) at ElementFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:831:22) at ImagesPageHelper.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/page-helper.po.ts:159:89) at step (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:136:27) at Object.next (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:117:57) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:110:75 at new Promise (<anonymous>) at Object.__awaiter (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:106:16) at ImagesPageHelper.PageHelper.selectOption (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/page-helper.po.ts:216:24) From asynchronous test: Error: at Suite.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/block/images.e2e-spec.ts:51:5) at apply (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/jasmine-fail-fast/node_modules/lodash/lodash.js:476:27) at Env.wrapper [as describe] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/jasmine-fail-fast/node_modules/lodash/lodash.js:5317:16) at Suite.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/block/images.e2e-spec.ts:38:3) [31m- [39m[31mExpected 1 to equal 0.[39m at Function.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/page-helper.po.ts:40:37) at step (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:136:27) at Object.next (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:117:57) at fulfilled (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:107:62) at process._tickCallback (internal/process/next_tick.js:68:7) ************************************************** * Failures * ************************************************** 1) Images page create, edit & delete image test should create image [31m- [39m[31mFailed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")[39m [31m- [39m[31mExpected 1 to equal 0.[39m
History
#1 Updated by Kiefer Chang about 4 years ago
- File protractor-report.tar.gz added
Attached the protractor report from jenkins workspace after https://jenkins.ceph.com/job/ceph-dashboard-pull-requests/3175/ is tested.
Updated: This can be reproduced locally.
#2 Updated by Volker Theile about 4 years ago
Same here:
Creating reporter at .protractor-report/ Jasmine started Images page breadcrumb and tab tests [32m✓ should open and show breadcrumb[39m (0.123 sec) [32m✓ should show four tabs[39m (0.04 sec) [32m✓ should show text for all tabs[39m (0.209 sec) (node:19325) UnhandledPromiseRejectionWarning: NoSuchElementError: No element found using locator: by.cssContainingText(".select-menu-item-content", "rbd") at elementArrayFinder.getWebElements.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:814:27) at process._tickCallback (internal/process/next_tick.js:68:7)Error: at ElementArrayFinder.applyAction_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:459:27) at ElementArrayFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:91:29) at ElementFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:831:22) at PoolPageHelper.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.po.ts:83:92) at step (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:136:27) at Object.next (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:117:57) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:110:75 at new Promise (<anonymous>) at Object.__awaiter (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:106:16) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.po.ts:83:17 (node:19325) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:19325) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. log: [ Entry { level: Level { name_: 'SEVERE', value_: 1000 }, message: 'https://bionic-huge--bc74acdd-b0e2-417c-a1dd-6fa050a0452c:41863/polyfills.js 180:24 Uncaught Error: Control \'filter\' could not be found!', timestamp: 1580980559935, type: '' } ] create, edit & delete image test [31m✗ should create image[39m (1 sec) [31m- [39m[31mFailed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")[39m at elementArrayFinder.getWebElements.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:814:27) at process._tickCallback (internal/process/next_tick.js:68:7)Error: at ElementArrayFinder.applyAction_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:459:27) at ElementArrayFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:91:29) at ElementFinder.(anonymous function).args [as click] (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/element.js:831:22) at ImagesPageHelper.<anonymous> (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/e2e/page-helper.po.ts:159:89) at step (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:136:27) at Object.next (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:117:57) at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/tslib/tslib.js:110:75 at new Promise (<anonymous>)
The most interesting part is
Uncaught Error: Control \'filter\' could not be found!',
Maybe this helps to fix the issue.
#3 Updated by Volker Theile about 4 years ago
P.S.: Can not reproduce that issue locally using latest master.
#4 Updated by Tiago Melo about 4 years ago
Problems only happens in latest version of chrome, 80.
Will try to fix it.
#6 Updated by Tiago Melo almost 4 years ago
- Status changed from New to Closed
We are now using Cypress E2E framework: https://tracker.ceph.com/issues/44812.
This exact error is no longer reproducible.
#7 Updated by Ernesto Puerta almost 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 151 to Testing & QA