Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add e2e tests for admin login feature #564

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

prashant-gurung899
Copy link

Added e2e tests using Cucumber(Gherkin Syntax) and Playwright browser automation tool to test admin login feature.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Tests only
  • Other... Please describe:

What is the current behavior?

Currently, Evershop hasn't implemented any testing(e2e-end to end). There are no tests to validate the expected behaviour of Evershop.
Manual testing is required to verify the functionality, which is time-consuming and prone to human error.

Issue Number: #532

What is the new behavior?

Added test scenarios in Gherkin Language for e2e test of admin login feature where the tests should:

  • Verify successful login with valid credentials.
  • Check for error messages when incorrect credentials are provided.
  • Check for error messages when no credentials are provided.
  • Ensure the login form behaves correctly when fields are left empty.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants