mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-26 04:08:01 +03:00
1c95acfd57
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. |
||
---|---|---|
.. | ||
src | ||
test | ||
.eslintrc.cjs | ||
.gitignore | ||
package.json | ||
tsconfig.declaration.json | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |