Ghost/apps/admin-x-framework
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
..
src Fixed flaky Admin X design tests (#21426) 2024-10-28 17:25:05 +09:00
test Added custom headers to be passed to createQuery hook (#20402) 2024-06-19 10:27:07 +07:00
.eslintrc.cjs Separated common AdminX logic into a reusable package (#18919) 2023-11-14 13:50:08 +00:00
.gitignore Moved AdminX test config to framework package (#19096) 2023-11-22 13:39:32 +00:00
package.json Update sentry-javascript monorepo to v7.119.2 2024-10-15 15:57:58 +02:00
tsconfig.declaration.json Separated common AdminX logic into a reusable package (#18919) 2023-11-14 13:50:08 +00:00
tsconfig.json Separated common AdminX logic into a reusable package (#18919) 2023-11-14 13:50:08 +00:00
tsconfig.node.json Separated common AdminX logic into a reusable package (#18919) 2023-11-14 13:50:08 +00:00
vite.config.ts Moved AdminX test config to framework package (#19096) 2023-11-22 13:39:32 +00:00