@tooniez

Published

- 2 min read

Playwright E2E Shopfront boilerplate!

img of Playwright E2E Shopfront boilerplate!

Check out the source code! https://github.com/tooniez/e2e-test-automation-shopfront-exercise

View the project board for this activity https://github.com/users/tooniez/projects/13

Technical Assessment: End-to-End Test Automation

Description

This project demonstrates my ability in setting up and executing end-to-end automated tests for an online shopping web application.

Tasks

  • Test Plan: Write a brief test plan outlining important end-to-end test scenarios for the application. Explain the reasons for your choices. #3
  • Test Automation Framework: Choose a test automation framework suitable for this application. Explain why you have chosen it over others. #2
  • Automated Test Creation: Write automated test scripts for at least two scenarios.
  • Test Reporting: After executing the tests, generate a report indicating whether each test has passed or failed. #11
  • Maintenance: Write a brief explanation of how you would maintain these tests as the application grows and evolves. 12

Project

A Github public project was created to demonstrate roughly the type of Issues/Pull Requests to establish the foundations of an Automated E2E Test Framework.

Milestones

Test Scripts

3 example test scripts were created as part of this exercise

  • login #10
  • products/cart, recorded user flow with Codegen #14

Test Reporting

In this exercise, this repository is configured using 2 Github Actions. Each action is configured with a Workflow Dispatch option enabling the option to trigger manually.

  1. Build and Test
  • runs the Shopfront test suite on Push to any branch
  • runs test suite with junit reporter
  • posts test results as comment in Pull Request
  1. CI - Shopfront E2E Test Suite
  • run the Shopfront test suite on Pull Request against main branch
  • runs the test suite with default HTML reporter
  • uploads test report to action for download

Maintenance

See our CONTRIBUTING for brief details related maintenance of test this framework

Submission Guidelines

  • Upload the source code and documentation to a repository on GitHub.
  • Share the test reports in any preferred format.
  • Email the completed work to the hiring manager/tech lead.

Additional Information

If you have any questions or need clarifications, feel free to reach out in this repository or this ama 📧

📝 License

Copyright © 2023 tooniez.
This project is MIT licensed.