I am trying to navigate the following URL in my app http://localhost:3000/dashboard/?token=secret. I know this isn't the correct way to handle tokens like this. I am trying to create automated tests to firstly navigate this page and then test the rest of the workflow. Unfortunately, I the test finishes and doesn't navigate correctly. If I try another URL like www.google.com, it works but doesn't work for the above URL.
'go to page': ((browser) => {
browser
.url('http://localhost:3000/dashboard/?token=secret')
.waitForElementVisible('body', 5000)
.end();
});
Any suggestions or workarounds?
Aucun commentaire:
Enregistrer un commentaire