RaspberryPiFoundation / editor-ui

Code Editor web component
https://editor-static.raspberrypi.org
Apache License 2.0
37 stars 8 forks source link

Add e2e spec for project remix behaviour in web component #1020

Closed floehopper closed 1 month ago

floehopper commented 1 month ago

The editor-standalone app will:

This spec checks that the web component provides the relevant behaviour for editor-standalone to use.

I did attempt to add an example for the default behaviour (i.e. when load_remix_disabled is not set). However, without any way to easily reset the state of the projects in the editor-api database, it's hard to come up with a robust way to write such a test.

Note that this PR changes both the editor app itself and the fake "app" wrapping the web component to use https://test-editor-api.raspberrypi.org instead of https://staging-editor-api.raspberrypi.org in CI. The former has BYPASS_AUTH set to true so the apps can make requests as if the user was logged in. The new e2e spec also relies on the projects:create_all rake task having been run - which we've only done manually for now, but needs automating.

github-actions[bot] commented 1 month ago
github-actions[bot] commented 1 month ago
github-actions[bot] commented 1 month ago
github-actions[bot] commented 1 month ago
github-actions[bot] commented 1 month ago