owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
448 stars 157 forks source link

accessingPrivateLinks.feature:9 failed #6488

Closed phil-davis closed 2 years ago

phil-davis commented 2 years ago

webUIPrivateLinks/accessingPrivateLinks.feature:9 failed in the nightly CI:

https://drone.owncloud.com/owncloud/web/23077/11/20

    And the "details" details panel should be visible
√ Element <//*[@id="sidebar-panel-details-item"]//*[contains(@class, "sidebar-panel__body-content")]> was present after 11 milliseconds.
 Error while running .isElementDisplayed() protocol action: The command failed because the referenced element is no longer attached to the DOM. – stale element reference: element i...

   TimeoutError: An error occurred while running .isVisible() command on <//*[@id="sidebar-panel-details-item"]//*[contains(@class, "sidebar-panel__body-content")]>: 
   {"status":-1,"message":"Cannot read property 'element-6066-11e4-a52e-4f735466cecf' of null","stack":"TypeError: Cannot read property 'element-6066-11e4-a52e-4f735466cecf' of null\n    at Selenium2Protocol.getElementId (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/transport/selenium2.js:9:20)\n    at IsVisible.elementFound (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/element/command.js:165:39)\n    at action (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/api/element-commands/_baseElementCommand.js:55:36)\n    at PeriodicPromise.perform (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/utils/periodic-promise.js:86:31)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at PeriodicPromise.runAction (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/utils/periodic-promise.js:48:22)\n    at PeriodicPromise.runAction (/var/www/owncloud/web/tests/acceptance/node_modules/nightwatch/lib/utils/periodic-promise.js:51:16)"}
       at Proxy.isPanelActive (/var/www/owncloud/web/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js:141:18)
       at World.<anonymous> (/var/www/owncloud/web/tests/acceptance/stepDefinitions/filesContext.js:872:68)
       at runMicrotasks (<anonymous>)
       at processTicksAndRejections (internal/process/task_queues.js:95:5)
    ✖ failed
      AssertionError [ERR_ASSERTION]: 'details-panel' should be active, but is not
          + expected - actual

          -false
          +true

          at World.<anonymous> (/var/www/owncloud/web/tests/acceptance/stepDefinitions/filesContext.js:873:10)
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)

  Result: FAILED

The cause looks like it is because of "The command failed because the referenced element is no longer attached to the DOM". We have seen this happen sometimes in the past with various tests. I suspect that the problem does not happen often.

Maybe #6227 is related, but maybe not.

Investigate if this "details panel" step can be made more reliable.

phil-davis commented 2 years ago

should have been fixed by #6499

If the scenario fails again, then please reopen the issue.

amrita-shrestha commented 2 years ago

This scenario failed today in https://drone.owncloud.com/owncloud/web/23583/71/22

saw-jan commented 2 years ago

this issue will be tracked in https://github.com/owncloud/web/issues/6607