Skip to content

Assessment: Automated E2E Tests for Login, Product Sorting, and Purchase#75

Open
seniafrontend wants to merge 2 commits intoautomationExamples:mainfrom
seniafrontend:feature/assessment-final
Open

Assessment: Automated E2E Tests for Login, Product Sorting, and Purchase#75
seniafrontend wants to merge 2 commits intoautomationExamples:mainfrom
seniafrontend:feature/assessment-final

Conversation

@seniafrontend
Copy link
Copy Markdown

Summary

  • Implemented automated E2E tests using Playwright + Cucumber.
  • Test coverage includes:
    1. Login – Validate page title, locked-out user error message.
    2. Product Sorting – Sort by price (low → high, high → low) with validation.
    3. Purchase Flow – Add backpack to cart, proceed through checkout, verify "Thank you for your order!" confirmation.

How to run
npm ci
npx playwright test

Results

  • All scenarios passed locally: 5 scenarios, 22 steps (update if different).

@seniafrontend
Copy link
Copy Markdown
Author

  • Modified the scenario 'Validate the login page title' from [login.feature], which runs but fails. Determine the cause of the failure and update the scenario to pass the test

  • Extended the scenario 'Validate login error message' from [login.feature], which runs and passes, but is missing a step. Extended the scenario to validate the error message received.

  • Modified and extended the 'Validate successful purchase text' from [purchase.feature] with steps for each comment listed. Consider writing a new steps.ts file along with an appropriate page.ts

  • Modified and extended the 'Validate product sort by price sort' from [product.feature] with steps for each comment listed. Utilize the Scenario Outline and Examples table to parameterize the test

  • Extended the testing coverage with Successful login redirect validation and Checkout validation for required fields

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.

1 participant