Playwright

Combine API setup with UI tests

Hard120 pts
  • Hybrid Testing
  • API + UI
  • Test Architecture
Practice app · Acme Ops

A sign-in page with field validation and an authenticated dashboard.

Test URL
/lab/playwright-combine-api-setup-with-ui-tests

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Establish an authenticated session and navigate to the application to verify dashboard access and welcome message.

Your Task

  1. 1Authenticate the session using test credentials ('qa@target.dev' / 'Test@123') or session cookies.
  2. 2Navigate to the application dashboard.
  3. 3Assert that the dashboard container #dashboard is visible.
  4. 4Assert that #welcome-message contains 'Welcome back, QA Tester'.

Validation Checks

  • Navigates to application
  • Verifies dashboard is visible
  • At least 1 assertion passes

Fixtures

username
qa@target.dev
password
Test@123

Playwright · Playwright Practice Track · API testing with Playwright