It's the xhr request.
You are already typing before the request is done.
So you have to create a
cy.intercept() on that route.
Wait before its done and then start typing.
The xhr request causes a refresh on the page because it's fetching the branch name