Create e2e test for login #106
Comments
Redirection isn't working in Testcafe - @tamlyn has emailed Orcid to add Blocked until Orcid has done this. WIP branch: https://gitlab.coko.foundation/xpub/xpub-elife/tree/e2e-login-test |
Just to share information, we use a dummy implementation for end2end tests of the OAuth flow and subsequent calls: https://github.com/elifesciences/orcid-dummy |
Hi all, @giorgiosironi , @jsms90 , @g-sam This is Rakesh from EuropePMC / EMBL-EBI. I admit TestCafe is a very good tool. However could you please take a look at SerenityJS-BDD framework which built on top of Protractor Automation tool? Please take a look at the xPub demo link and Test script’s git repo details as BDD provides the below listed potential benefits.
xPub SerenityJS demo: EuropePMC SerenityJS demo: Git repo to the demo Test script BDD blog (In case you would like to know more about BDD) Thanks Rakesh |
Hi, |
Hi @giorgiosironi , I accidentally spotted this place. Could you please mention here the right URL, please? |
The other devs mentioned here know better than me where to discuss xpub-wide issues, I'd let them answer this. |
Great. Let's wait then :) |
Morning Rakesh! I would suggest you move this discussion into the generic Specifically target the question to Jure and Tam, as I think this would need a wider chat/discussion. Thanks for your interest! |
thanks, @diversemix , I already have done it on last Friday before commenting here :) |
Experiencing an error with this test during the build pipeline:
Sometimes reproducible locally, sometimes the test passes. We're unsure why this is happening. We've tried:
Neither of these seem to alleviate the problem. Next thing to try - using eLife's orcid API dummy & see whether the problem still repeats. If not, our issue may be caused by the Orcid sandbox. |
Hooked this up to orcid-dummy and deleted the lines in the e2e where it simulates typing in the username and password (as the dummy repo doesn't actually display a login screen). We have run the tests 30 times against the dummy repo & they're passing, which seems to suggest that the issue lies with orcid (?) We do get selector errors though, which seems to indicate a need to increase the selector timeout |
Issues sorted. No longer WIP: https://gitlab.coko.foundation/xpub/xpub-elife/merge_requests/54 |
When an author enters our Orcid login details (sandbox username - elife@mailinator.com - and password), they should be redirected to the dashboard
The text was updated successfully, but these errors were encountered: