Skip to content

ci: Stabilize cypress#5481

Open
juliusknorr wants to merge 4 commits intomainfrom
ci/fix-cypress-stability
Open

ci: Stabilize cypress#5481
juliusknorr wants to merge 4 commits intomainfrom
ci/fix-cypress-stability

Conversation

@juliusknorr
Copy link
Member

  • Fix cypress failure: simplify PDF viewer test to remove broken files_pdfviewer dependency
  • Stabilize Cypress tests - improve timeouts and remove hard-coded waits
  • Fix closebutton clicks and improve wait conditions across all test files
  • Add waitForPostMessage and visibility checks to open.spec.js tests
  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

Copilot AI and others added 4 commits March 13, 2026 11:09
…pdfviewer dependency

The test "Open PDF with files PDF viewer" was failing because
files_pdfviewer/templates/viewer.php calls OC\Server::getAppManager()
which does not exist in Nextcloud 34 (master), causing a PHP 500 error.

The test was asserting that the iframe content inside .viewer__file--active
had a .pdfViewer element (files_pdfviewer internal implementation detail),
but the iframe was loading a Nextcloud error page instead.

The fix simplifies the test to only verify what richdocuments controls:
1. The viewer opens (waitForViewer)
2. Collabora is NOT being used (coolframe does not exist)
3. The viewer file element is active (.viewer__file--active exists)

This removes the fragile cross-document assertion that depended on the
external files_pdfviewer app rendering correctly.

Co-authored-by: juliusknorr <3404133+juliusknorr@users.noreply.github.com>
Co-authored-by: juliusknorr <3404133+juliusknorr@users.noreply.github.com>
Co-authored-by: juliusknorr <3404133+juliusknorr@users.noreply.github.com>
Co-authored-by: juliusknorr <3404133+juliusknorr@users.noreply.github.com>
@juliusknorr juliusknorr requested a review from elzody as a code owner March 13, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants