CypressError
Timed out retrying after 4000ms: cy.type()
failed because this element is detached from the DOM. <input _ngcontent-c5="" class="form-control ng-untouched ng-pristine ng-invalid" id="last_name" name="last_name" required="" type="text">
Cypress requires elements be attached in the DOM to interact with them. The previous command that ran was: > cy.get()
This DOM element likely became detached somewhere between the previous and current command. Common situations why this happens: – Your JS framework re-rendered asynchronously – Your app code reacted to an event firing and removed the element You typically need to re-query for the element or add ‘guards’ which delay Cypress from running new commands.Learn more