Skip to content

[stable32] feat: playwright e2e tests#7091

Merged
vitormattos merged 19 commits intostable32from
backport/6998/stable32
Mar 5, 2026
Merged

[stable32] feat: playwright e2e tests#7091
vitormattos merged 19 commits intostable32from
backport/6998/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6998

…tall

Signed-off-by: Vitor Mattos <[email protected]>

fix(ci): use index.php as router for PHP built-in server

Signed-off-by: Vitor Mattos <[email protected]>
test: add router script for E2E server

ci: use router script for PHP built-in server with correct document root

fix: cs

build: ignore playwright test artifacts

test(e2e): wait for Vue app to load before running tests

ci(e2e): add debug steps to check build artifacts and server status

test(e2e): remove redundant wait - rely on Playwright auto-waiting

ci(e2e): add more debug checks for app page and enablement status

- Check what HTML is returned when curling /apps/libresign
- Verify if app is enabled with occ app:list

test(e2e): add debug logging to investigate CI timeout

- Capture browser console logs
- Log page URL, title, and HTML before button click
- Take screenshot for visual debugging
- Remove workaround navigation to /apps/files (works fine locally)

Signed-off-by: Vitor Mattos <[email protected]>
Log REQUEST_URI, URI, and dispatch info to stderr to understand
why paths are being duplicated or misrouted in CI environment.

Signed-off-by: Vitor Mattos <[email protected]>
Add explicit URL construction logging to see what path is being used.

Signed-off-by: Vitor Mattos <[email protected]>
Without Apache/mod_rewrite, Nextcloud redirects /apps/libresign to
/index.php/apps/libresign. The Vue Router then builds relative paths
from /index.php/, causing URL duplication and a broken app state.

PHP's built-in server reads the front_controller_active env variable
(see lib/private/URLGenerator.php). When true, Nextcloud generates
clean URLs without the index.php prefix — the same behavior that
Apache's .htaccess RewriteRule provides — and our router.php already
handles routing those clean URLs to index.php.

Signed-off-by: Vitor Mattos <[email protected]>
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Mar 5, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Mar 5, 2026
@vitormattos vitormattos merged commit aabd40c into stable32 Mar 5, 2026
62 checks passed
@vitormattos vitormattos deleted the backport/6998/stable32 branch March 5, 2026 12:38
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant