0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/apps/admin-x-settings/test
Ronald Langeveld 1c95acfd57
Fixed flaky Admin X design tests (#21426)
ref ONC-478

- Admin X design tests became flaky largely due to the implementation of
a debounce.
- Initially running a `waitForTimeout` helped to give the environment
enough time to ensure that the specific requests are made, however it
proved to be unpredictable across CI and locally.
- We then replaced `waitForTimeout` in with `waitForRequest` to ensure
tests reliably wait for specific requests.
- Updated logic to check `x-ghost-preview` headers directly, ensuring
the correct response headers are captured and tested against
- Improved stability by using request interception and matching,
preventing debounce issues in the tests.
2024-10-28 17:25:05 +09:00
..
acceptance Fixed flaky Admin X design tests (#21426) 2024-10-28 17:25:05 +09:00
unit Updated version handling in Admin-X Settings 2024-09-16 09:57:09 +02:00
utils 🐛 Fixed admin error when trying to overwrite a default theme (#20299) 2024-05-30 15:55:45 -07:00