Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] download related e2e tests fail on chromium-based browser when playwright tracing is enabled #11541

Open
PrajwolAmatya opened this issue Sep 9, 2024 · 8 comments
Assignees
Labels

Comments

@PrajwolAmatya
Copy link
Contributor

PrajwolAmatya commented Sep 9, 2024

Description

Multiple builds are failing on keycloak tests while downloading resources via sidebar panel.

     And "Carol" navigates to the shared with me page # tests/e2e/cucumber/steps/ui/shares.ts:136
   ✖ And "Carol" downloads the following resources using the sidebar panel # tests/e2e/cucumber/steps/ui/resources.ts:105
       | resource      | from      | type   |
       | data.zip      | meal plan | file   |
       | lorem.txt     | meal plan | file   |
       | lorem-big.txt | meal plan | file   |
       | meal plan     |           | folder |
       locator.click: Timeout 30000ms exceeded.
       =========================== logs ===========================
       waiting for locator('.oc-files-actions-show-details-trigger')
       ============================================================
           at openForResource (/var/www/owncloud/web/tests/e2e/support/objects/app-files/utils/sidebar.ts:16:64)
           at async Object.open (/var/www/owncloud/web/tests/e2e/support/objects/app-files/utils/sidebar.ts:51:14)
           at async Object.downloadResources (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts:675:9)
           at async Resource.download (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts:66:23)
           at async processDownload (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:492:17)
           at async World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:110:5)

Builds:

@saw-jan
Copy link
Member

saw-jan commented Sep 12, 2024

This is reproducable only when running test with REPORT_TRACING=true. 😮‍💨
and in CI we have REPORT_TRACING=true for keycloak pipeline

@saw-jan
Copy link
Member

saw-jan commented Sep 12, 2024

Tracing config fix: #11571

@saw-jan
Copy link
Member

saw-jan commented Sep 12, 2024

Looks like the playwright tracing tracing.start breaks the web when using download action

Screenshot from 2024-09-12 18-15-25

@saw-jan
Copy link
Member

saw-jan commented Sep 13, 2024

Doesn't look like a problem with ocis or web. The problem might be with playwright library

@saw-jan
Copy link
Member

saw-jan commented Sep 13, 2024

might be a google-chrome version: tests were working with Google Chrome 123.0.6312.105 but started failing with Google Chrome 128.0.6613.119
Version got updated with the recent build of owncloudci/nodejs image

@saw-jan
Copy link
Member

saw-jan commented Sep 13, 2024

With the latest chromium-based browser and playwright tracing enabled, the HEAD request to download file causes the Sign In alert to appear. I don't think we can do anything from the test code

await axiosClient.head(downloadURL)

@saw-jan saw-jan changed the title Failure on download resources via sidebar panel in keycloak pipeline [QA] download related e2e tests fail on chromium-based browser when playwright tracing is enabled Sep 16, 2024
@saw-jan
Copy link
Member

saw-jan commented Dec 4, 2024

Re-test it with the latest chromium/chrome browser

@PrajwolAmatya
Copy link
Contributor Author

PrajwolAmatya commented Dec 5, 2024

Tested with chromium version 131.0.6778.108 and REPORT_TRACING=true, we still get the same failure. Sign In alert appears during the download step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants