HTML Architect: E2E tests - add cleanup after tests to avoid leftover state

Hi all,

I’d like to suggest two small improvements to the E2E test suite for the HTML Architect:

  1. Cleanup after tests finish (or are interrupted). Right now, if a test run is stopped partway through — which happens often during active development — it can leave things in a messy state behind. Adding a cleanup step after tests run (or after each test) would keep the environment tidy, which matters a lot when you’re iterating locally and running tests frequently.
  2. Reset to the default package after a test completes. Some tests switch the active package as part of what they’re testing. Afterwards, the Architect is left with that alternative package still selected, which then gets in the way of whatever you do next during development. Re-selecting the default package once a test is done would avoid that friction.

Both of these are about making the test suite friendlier to work with day-to-day, rather than about correctness of the tests themselves.

I’m happy to open a PR for this. (size S)