Skip to content

Commit

Permalink
fix: Make loading the viewer an init script
Browse files Browse the repository at this point in the history
test: Adjust Cypress to use stable28 as base branch

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Sep 11, 2024
1 parent faa6d9b commit 007c26f
Show file tree
Hide file tree
Showing 12 changed files with 640 additions and 230 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default defineConfig({

// Before the browser launches
// starting Nextcloud testing container
return startNextcloud(process.env.BRANCH)
return startNextcloud(process.env.BRANCH ?? 'stable28')
.then((ip) => {
// Setting container's IP as base Url
config.baseUrl = `http://${ip}/index.php`
Expand Down
1 change: 1 addition & 0 deletions lib/Listener/LoadViewerScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function handle(Event $event): void {
return;
}

Util::addInitScript(Application::APP_ID, 'viewer-init');
Util::addScript(Application::APP_ID, 'viewer-main', 'files');
$this->initialStateService->provideInitialState('enabled_preview_providers', array_keys($this->previewManager->getProviders()));
}
Expand Down
Loading

0 comments on commit 007c26f

Please sign in to comment.