Skip to content

Implement the Cypress e2e test to test the login flow of krini #1

Closed

Description

@anuragxxd

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.

Activity

  1. added
    priority: high
    type: testing
    on Jun 22, 2022
  2. uniqueg commented on Jul 8, 2022

    @uniqueg
    Member

    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 🙏🏻

  3. anuragxxd commented on Jul 8, 2022

    @anuragxxd
    MemberAuthor

    Yeah sure @uniqueg. @Sanyam2000-dot can you confirm if you are working on this?

  4. Sanyam2000-dot commented on Jul 8, 2022

    @Sanyam2000-dot

    Hello Anurag, Yes I'm working on this issue. Thanks!

  5. Sanyam2000-dot commented on Jul 8, 2022

    @Sanyam2000-dot

    Ok @Sanyam2000-dot, let me know if you need any kind of help.

    Thanks @tanya17-05 . I'll ket you know.

  6. anuragxxd commented on Aug 15, 2022

    @anuragxxd
    MemberAuthor

    Hey @Sanyam2000-dot are you working on this?

  7. Sanyam2000-dot commented on Aug 19, 2022

    @Sanyam2000-dot

    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.

  8. anuragxxd commented on Aug 19, 2022

    @anuragxxd
    MemberAuthor
  9. SohamRatnaparkhi commented on Mar 3, 2023

    @SohamRatnaparkhi
    Member

    Hi,
    Can I work on this issue? I have some experience in writing Cyprus tests.
    My approach would be, using cyprus:

    • clicking the login button on home screen
    • clicking on Login with LS username
    • entering test username and password
    • clicking on login button
    • searching for Run workflow button to confirm login was successful.

    Code snippet in spec.cy.js file that I wrote in my forked repo to solve this issue would be -

    code-snapshot
    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.

  10. anuragxxd commented on Mar 3, 2023

    @anuragxxd
    MemberAuthor

    Sure @SohamRatnaparkhi, go ahead with it!

  11. SohamRatnaparkhi commented on Mar 4, 2023

    @SohamRatnaparkhi
    Member

    Okay, Thank you @git-anurag-hub
    What should be the test_password and test_username in this case?

  12. anuragxxd commented on Mar 4, 2023

    @anuragxxd
    MemberAuthor

    Hey @SohamRatnaparkhi, you can right now try out with yours & configure the same in the .env.test!

  13. uniqueg commented on Nov 14, 2026

    @uniqueg
    Member

    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.

  14. added this to the v0.1.0 milestone on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority: hightype: testing

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions