Skip to content

Feat/testing api alpha#598

Draft
christianSozialhelden wants to merge 34 commits intobetafrom
feat/testing-api-alpha
Draft

Feat/testing api alpha#598
christianSozialhelden wants to merge 34 commits intobetafrom
feat/testing-api-alpha

Conversation

@christianSozialhelden
Copy link
Copy Markdown
Contributor

No description provided.

Mayaryin and others added 30 commits March 11, 2026 10:49
This fixes an issue with a SSR code trying to access the browser localStorage API which isn't available when the code runs inside the server side scope.

The code did not work anymore because it checked for the existence of a `localStorage` global – which exists, because the app creates a stub of it as empty object (this behavior seems to have changed recently, and is probably related to web packaging).

The new code checks for the existence of a `window` global to find out if it is running inside SSR code. This seems to reliably work on the server side.
This adds `Dockerfile.testing` and `run_tests.sh` files that reliably test the app with Playwright using base URL that the CI process can hand over as environment variable.

Transifex Native CDN loading still hangs in CI tests, we have to fix that in another step.
- Use `pnpm` instead of `npm`
- Use `corepack`/`buildkit` for container build layer caching
- Improve build speed and container image size
- Fix vulnerabilities
- Require newer node engine in `package.json`
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