Project

General

Profile

Bug #44007

mgr/dashboard: e2e error on "create, edit & delete image test"

Added by Kiefer Chang about 4 years ago. Updated almost 3 years ago.

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
      ✓ should open and show breadcrumb (0.156 sec)
      ✓ should show four tabs (0.049 sec)
      ✓ should show text for all tabs (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
      ✗ should create image (0.995 sec)
        - Failed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")
            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)
        - Expected 1 to equal 0.
            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
  - Failed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")
  - Expected 1 to equal 0.

protractor-report.tar.gz (993 KB) Kiefer Chang, 02/06/2020 06:25 AM

History

#1 Updated by Kiefer Chang about 4 years ago

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
      ✓ should open and show breadcrumb (0.123 sec)
      ✓ should show four tabs (0.04 sec)
      ✓ should show text for all tabs (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
      ✗ should create image (1 sec)
        - Failed: No element found using locator: by.cssContainingText("select[name=pool] option", "e2e_images_pool")
            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

Also available in: Atom PDF