Commit 7823c8f
Fix cypress failure: simplify PDF viewer test to remove broken files_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>1 parent ebf4b5f commit 7823c8f
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 109 | + | |
| 110 | + | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
| |||
0 commit comments