Practice Library

Practice Challenges for UI & API Automation

Choose a module, review the curated challenge briefs, and plug them into Selenium, Playwright, Cypress, WebdriverIO, or API tooling. Each brief includes sample assertions so you can focus on framework technique instead of inventing requirements.

Module

Difficulty

Tool focus

E-Commerce Automation

Simulate storefront journeys with carts, coupons, taxes, inventory checks, and order confirmations.

Cart Price Audit

Intermediate

Ensure line items, taxes, promotions, and totals never drift.

Test ideas

  • Add/remove SKUs and verify subtotal math updates correctly
  • Apply coupons, stack promotions, and assert discount copy
  • Trigger out-of-stock handling and confirm disabling of checkout CTA
SeleniumPlaywrightCypress

Great for Selenium · Playwright · Cypress

Checkout Resilience

Advanced

Validate UX when payment gateways succeed, fail, or time out.

Test ideas

  • Mock payment success/failure via API explorer or cy.intercept
  • Assert toast messages, error banners, and recovery flows
  • Confirm orders land in /app/orders with accurate statuses
PlaywrightCypressAPI

Ideal for hybrid API + UI testing

Order History Insights

Beginner

List filtering, table assertions, and toast confirmations.

Test ideas

  • Place order via UI/API then verify row details + totals
  • Filter orders by status and confirm empty state copy
  • Download receipts or detail views and assert metadata
CypressPlaywright

Use Cypress component tests or Playwright traces

Notes & Knowledge Sharing

Exercise CRUD, tagging, collaboration indicators, and optimistic UI.

Rich Text Authoring

Beginner

Validate editor formatting, autosave, and accessibility.

Test ideas

  • Apply bold/italic/links and ensure preview mirrors source
  • Autosave drafts and confirm status chips update
  • Run axe scans for color contrast + keyboard focus
Cypress

Perfect for Cypress component testing

Tag & Search Relevance

Intermediate

Guarantee filters + search return expected notes.

Test ideas

  • Create tagged notes, then filter via chip UI
  • Search by keyword and compare to API /notes response
  • Validate empty state guidance for no results
PlaywrightSelenium

Leverage Playwright locators with data-test ids

Collaboration Signals

Advanced

Simulate multi-user editing and permissions.

Test ideas

  • Share notes and confirm avatar stack updates real time
  • Attempt unauthorized edits and assert warning copy
  • Review audit log entries in admin panel for compliance
PlaywrightAPIWebdriverIO

Blend UI + API contract tests

Authentication & Sessions

Work through onboarding flows, validation, MFA, and storage state.

Signup Validation Matrix

Beginner

Ensure every field surfaces friendly, automation-friendly errors.

Test ideas

  • Submit empty form and capture inline validation IDs
  • Test password strength meter edge cases
  • Validate success path redirects to /app/dashboard
SeleniumCypress

Great starter for Selenium or Cypress

Session Persistence

Intermediate

Confirm tokens, cookies, and localStorage behave.

Test ideas

  • Login, refresh, and ensure session persists
  • Force token expiry (via API Explorer) and assert reauth flow
  • Toggle theme preference and confirm it survives logout/login
PlaywrightWebdriverIO

Use Playwright storageState utilities

Password Recovery

Advanced

Model OTP and reset links with negative coverage.

Test ideas

  • Trigger forgot password and capture email copy (mocked)
  • Attempt expired token usage and assert friendly error
  • Reset password then audit /auth/login telemetry ribbon
APISeleniumPlaywright

Combine API mocks with UI regression tests

Admin Dashboard & Analytics

Role-based access, charts, live tables, and moderation tools.

RBAC Gatekeeping

Intermediate

Confirm only admins reach /admin routes and widgets.

Test ideas

  • Login as user vs admin and assert redirects
  • Check each KPI card data-test id vs API payload
  • Attempt admin API calls without scope and expect 403
APIPlaywrightSelenium

Great for contract + UI parity tests

Live Metrics Integrity

Advanced

Dashboard charts, sparklines, and stats panels.

Test ideas

  • Intercept analytics endpoint and validate fallback skeletons
  • Compare chart totals to table data for accuracy
  • Screenshot diff metric cards after data refresh
PlaywrightCypress

Use Playwright tracing or Cypress visual tools

Moderation Workflow

Intermediate

Review latest notes/orders and take action.

Test ideas

  • Approve/deny notes and ensure status chips change
  • Bulk update order statuses, assert toast + activity log
  • Verify pagination + filters keep selection state
WebdriverIOSelenium

Ideal for WebdriverIO suites

API Explorer & Gateway

Chain REST calls, compare environments, and co-locate docs.

Smoke Suites

Beginner

Basic health, auth, and CRUD coverage.

Test ideas

  • Ping /api/health and assert structure
  • Login + list products within a single test
  • Document results in your reporting framework
APIPostmanRest Assured

Great for Postman, Newman, REST Assured

Data Seeding Harness

Intermediate

Prep data for UI suites using APIs.

Test ideas

  • Create carts/orders before UI tests run
  • Reset fixtures post-test to keep state stable
  • Expose helper functions in your automation repo
APISeleniumPlaywright

Pair with Selenium or Playwright

Contract + Error Coverage

Advanced

Assert schema, status codes, and chaos behaviour.

Test ideas

  • Validate JSON schema for /api/v1/orders responses
  • Trigger negative paths (401/403/422) intentionally
  • Log metrics to Grafana or custom dashboards
APIRest AssuredNewman

Run in CI as nightly suites