Skip to content

get10acious/qaeng_week1_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RewardOps - QA Upskilling Week 1 Prototype

This is a simple React application simulating the "Reward Preference Management" feature for the Week 1 QA Upskilling Challenge.

Features

  • Displays a list of reward categories with checkboxes.
  • Allows users to select/deselect preferences.
  • Simulates saving preferences (logs to console, updates local state).
  • Simulates potential save failures (e.g., if "Experiences" is selected).
  • Displays confirmation/error messages.
  • Loads different initial preferences based on URL query parameter ?user=A, ?user=B, or ?user=C. Defaults to User A if no parameter is provided.

Setup and Running

Prerequisites

  • Node.js (LTS version recommended) and npm (or yarn)
  • Git

Standard Setup

  1. Clone: git clone <repository_url>
  2. Navigate: cd <repository_directory>
  3. Install: npm install (or yarn install)
  4. Run: npm start (or yarn start)

The application will typically open at http://localhost:3000.

To simulate different users, append ?user=A, ?user=B, or ?user=C to the URL.

Docker Setup (Optional)

  1. Clone: As above.
  2. Ensure Docker Desktop is running.
  3. Build & Run: docker-compose up --build
  4. Access: http://localhost:3000 (or the port mapped in docker-compose.yml)

Testing Notes

  • Check the browser's developer console (F12) to see simulated save messages and potential errors.
  • The "persistence" is only simulated within the component's state for this challenge. Reloading the page will reset to the initial state based on the URL parameter.
  • The save failure is hardcoded to trigger if "Experiences" is selected, purely for testing the error handling path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published