My last line of code is not executed and instead of that, the first line of code (that was visiting the page) is executed again, after which cypress tries to execute the rem