owncloud / web

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

[full-ci][tests-only] fix flaky onlyoffice test scenario #11023

Closed saw-jan closed 3 months ago

saw-jan commented 3 months ago

Description

Trying to fix these flaky e2e tests:

Scenario: create a Microsoft Word file with OnlyOffice (attempt 2) # tests/e2e/cucumber/features/app-provider/officeSuites.feature:79
   ...
   ✖ And "Alice" opens the following file in OnlyOffice # tests/e2e/cucumber/steps/ui/resources.ts:559
       | resource           |
       | MicrosoftWord.docx |
       locator.waitFor: Timeout 30000ms exceeded.
       =========================== logs ===========================
       waiting for frameLocator('[name="app-iframe"]').frameLocator('[name="frameEditor"]').locator('#area_id') to be visible
       ============================================================
           at Object.openFileInViewer (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts:1684:69)
           at async Resource.openFileInViewer (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts:235:5)
           at async World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:566:7)
Scenario: sse events on file operations (attempt 1, retried) # tests/e2e/cucumber/features/smoke/sse.feature:166
   ...
   ✖ When "Brian" navigates to the trashbin of the project space "marketing" # tests/e2e/cucumber/steps/ui/spaces.ts:140
       locator.waitFor: Timeout 30000ms exceeded.
       =========================== logs ===========================
       waiting for locator(':is(#files-space-table, #files-trashbin-empty)') to be visible
       ============================================================
           at Overview.navigate (/var/www/owncloud/web/tests/e2e/support/objects/app-files/page/trashbin/overview.ts:13:80)
           at async World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts:145:5)

Related Issue

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Open tasks:

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud