Skip to content

vimanish/qa-checkout-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkout QA Assessment - task_21

A focused take-home assessment app using a sample online shopping journey.

The app deliberately uses a familiar online-shopping flow with a separate checkout/payment step so candidates can start testing immediately without a product knowledge-transfer session. task_21 keeps the focused shopper journey and removes the ticket brief from the product UI. Candidates should receive the ticket separately from docs/CANDIDATE_BRIEF.md; the deployed app now behaves like a clean product under test with Shop & basket, Checkout / payment and Orders / export modules.

Run locally

No runtime dependencies are required for the app itself.

node server.js

Open:

http://localhost:4174

Local account

For local review, use:

shopper@test.local / Automation123!

The app no longer displays credentials in the UI. Share the account details with candidates separately.

Test data in the candidate brief

Data Value
Accepted test card 4242424242424242
Declined test card 4000000000000002
Promo code SAVE10
Promo code WELCOME5

Deployment

Node

PORT=4174 node server.js

Docker

docker build -t checkout-sr-qa-assessment .
docker run -p 4174:4174 checkout-sr-qa-assessment

Candidate task shape

Ask the candidate to treat this as a checkout release going to staging. Share the candidate brief separately, then provide the deployed app URL and credentials. The app itself contains only the product journey: Shop & basket, Checkout / payment and Orders / export.

A candidate should not be expected to test every product or automate every scenario. Strong candidates will explain trade-offs.

Files

server.js                    Node HTTP server for the assessment app
public/index.html            SPA entry point
public/app.js                SPA behaviour
public/styles.css            App styling
docs/CANDIDATE_BRIEF.md      Candidate-facing ticket summary
docs/HIRING_MANAGER_GUIDE.md Keep private
tests/example.spec.js        Starter Playwright examples

Reset test data

Use the Reset data button in the app header before each new candidate run. Reset now preserves the active signed-in session while clearing products, basket, orders and audit state.

Automation surfaces

The app deliberately uses mixed, realistic locator options instead of giving every element the same test id. Candidates can choose from accessible labels, roles, scoped row attributes, product SKUs, action attributes and the Orders grid cell metadata.

About

This is a sample app mimicking online shopping user journey

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages