You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement the Cypress e2e test to test the login flow of krini #1
Is your feature request related to a problem? Please describe.
As the CI pipeline runs certain tests on the Krini before deploying it to the production. Checking the login flow will be a good test to be written in case OIDC auth is broken by any code changes.
Describe the solution you'd like
We can write the cypress e2e test that tests for the login flow before deploying the application to production.
Describe alternatives you've considered
--NA--
Additional context
A test can be written in the file ./cypress/e2e/spec.cy.js under the test auth -> user can login. This test is already integrated into the CI pipeline & this can be tested by running npm run cypress:open.
Hi @tanya17-05, I think @Sanyam2000-dot is already working on this, but I'm not sure. @git-anurag-hub: can you please write some more issues and make sure both @Sanyam2000-dot and @tanya17-05 have issues to work on? Thanks 🙏🏻
Hello @git-anurag-hub, I have started this but have not completed it due to some health issues in the family. It will be good if you can assign it to Tanya so I can guide her forward.
The end-to-end tests on dev (Playwright, e2e/journey.spec.ts, added in #63) now cover the login flow: logging in and out, and rejecting a forged
login callback. They run against a mock OIDC provider
(e2e/mock/server.ts), so they don't need a real LS Login account.
Closing as done; #19 is closed as superseded.
Activity
uniqueg commentedon Jul 8, 2022
Hi @tanya17-05, I think @Sanyam2000-dot is already working on this, but I'm not sure. @git-anurag-hub: can you please write some more issues and make sure both @Sanyam2000-dot and @tanya17-05 have issues to work on? Thanks 🙏🏻
anuragxxd commentedon Jul 8, 2022
Yeah sure @uniqueg. @Sanyam2000-dot can you confirm if you are working on this?
Sanyam2000-dot commentedon Jul 8, 2022
Hello Anurag, Yes I'm working on this issue. Thanks!
Sanyam2000-dot commentedon Jul 8, 2022
Thanks @tanya17-05 . I'll ket you know.
anuragxxd commentedon Aug 15, 2022
Hey @Sanyam2000-dot are you working on this?
Sanyam2000-dot commentedon Aug 19, 2022
Hello @git-anurag-hub, I have started this but have not completed it due to some health issues in the family. It will be good if you can assign it to Tanya so I can guide her forward.
anuragxxd commentedon Aug 19, 2022
Np @Sanyam2000-dot , TC!
SohamRatnaparkhi commentedon Mar 3, 2023
Hi,
Can I work on this issue? I have some experience in writing Cyprus tests.
My approach would be, using cyprus:
Login with LS usernameRun workflowbutton to confirm login was successful.Code snippet in
spec.cy.jsfile that I wrote in my forked repo to solve this issue would be -Here, we will require some test username and password to be stored in .env which can be used for testing.
I am open for suggestions to my approach.
anuragxxd commentedon Mar 3, 2023
Sure @SohamRatnaparkhi, go ahead with it!
SohamRatnaparkhi commentedon Mar 4, 2023
Okay, Thank you @git-anurag-hub
What should be the
test_passwordandtest_usernamein this case?anuragxxd commentedon Mar 4, 2023
Hey @SohamRatnaparkhi, you can right now try out with yours & configure the same in the .env.test!
uniqueg commentedon Nov 14, 2026
The end-to-end tests on
dev(Playwright,e2e/journey.spec.ts, added in#63) now cover the login flow: logging in and out, and rejecting a forged
login callback. They run against a mock OIDC provider
(
e2e/mock/server.ts), so they don't need a real LS Login account.Closing as done; #19 is closed as superseded.