- Issue created by @longwave
- First commit to issue fork.
publish-button.cy.js is flaky. It passes quite a lot of the time, but not always.
https://git.drupalcode.org/project/experience_builder/-/jobs/4139402
https://git.drupalcode.org/project/experience_builder/-/jobs/4178071
https://git.drupalcode.org/project/experience_builder/-/jobs/4178388
When it fails it is because the preview of the published page is missing content:
cy:command β assert [data-xb-preview="lg"][data-test-xb-content-initialized="true"][data-xb-swap-active="true"] in iframe includes text There goes my hero: expected **false** to equal **true**
Running it locally I can reproduce this most of the time as well, but not always. What seems to happen is that the PATCH request to publish the content fails - but it's not clear why this is intermittent. Observing it via pausing the test seems to make it go away a lot of the time which makes it even more awkward to debug - so maybe it's a race condition of some kind?
Active
0.0
Miscellaneous