cy.url() and/or cy.location('href') does not return a string
问题 I have an editor page. When I add any content and click the "Save" button my URL will change, adding a random id in the URL. I want to check if my ID's are changing every time when I click the "Save button". I save the URL result in variable and want to check it, I do it like this: const currentURL = cy.url(); cy.get('.editor-toolbar-actions-save').click(); cy.url().should('not.eq', currentURL); But my currentURL variable's type is not string: expected http://localhost:8080/editor/37b44d4d