Closed twschiller closed 3 years ago
I think it's easier to handle each page completely independently, especially if multiple frameworks and versions are involved, we don't want to have to mess with a global bundler/system for that.
Possible solution:
Advantages:
Examples:
Side note: For very simple situations, I also have this testing ground customizable via URL: https://fregante.github.io/pixiebrix-testing-ground/Parent?iframe=./Child&iframe=./Other
I'm using it on the Messenger for the automated testing: https://github.com/pixiebrix/webext-messenger/commit/1827186a854b3febe3d44bb031f674019860c7cc
- Is it worth having a backend? We'd need it for Turbolinks? Static admin interfaces, e.g., Django admin? We probably need affordances for multiple backends (Ruby vs. Django)
This could be one of the "cases" in a subfolder. This specific case would handle its own deployment via GitHub Actions
- Are JS modules at a point where we don't even need to bundle them? We could just reference the CDN directly from the page (e.g., using unpkg.com)
Sort of! unpkg serves raw files as they appear on npm; They only work if they're pre-packaged as UMD. I think Skypack is the "smart" CDN for this use case.
Example set up here: https://github.com/pixiebrix/playground
Default page available at: https://pixiebrix.github.io/playground/example/
More subfolders can be added by anyone who wants to create custom cases for their tests.
Goals/Purpose
An environment replicating different situations that occur in websites in the wild
Requirements
Examples of Cases to Cover
Business Apps to Mimic
Open questions / considerations
Prior Art