-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flaky Navigation block e2e test by mocking out URL details endpoint to avoid 404 #37501
Conversation
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a better workaround than page.waitForNetworkIdle()
, so +1 for the immediate fix.
I haven't been very involved in the navigation editor, so I'm probably missing something. But is there an issue/pr for addressing this in the NavEditor
component or fetchUrlData
function so the workaround isn't needed here?
A good question but I believe this isn't a flaw of the component. The request will 404 however it's handled by This is because the request is made to a post which is a draft. The fetchUrlData function needs to be unaware as to whether the requested resource is an external or internal URL. I did a lot of experimenting with this when I created the "rich data" feature so I'm confident mocking the endpoint is the best route in this regard. Thanks for merging the fix 🙇 |
Hi, folks I don't think this PR fully resolved this issue. I have seen the same tests failures a lot lately. |
Yeh looks like only partially. I was trying all day to debug this as it would only fail on CI for me. |
@getdave, I also had no luck debugging it locally. |
Description
Since we re-enabled the Navigation block e2e tests the CI tests have been flaky.
This PR fixes #37479 by mocking out the
url-details
endpoint to avoid having to handle the 404 using less resilient methods.Note this commit was cherry picked from #37454 which also contains the fix.
How has this been tested?
Run tests check they pass on CI.
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).