Send and withdraw a connection invitation
- Navigation
- URL assertions
- State changes
- Confirmation dialogs
A professional network: a 3-step sign-up wizard, a feed with likes, comments and lazy-loaded posts, a notifications dropdown, a messaging drawer with auto-replies, job search with filters and a multi-step Easy Apply modal, member profiles with connect/withdraw, a skills tag input and company pages that open a careers site in a new tab.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Navigate from My Network to Priya Nair's profile, send her a connection invitation, then withdraw it and verify the profile is back to its Connect state.
Your Task
- 1Open TEST_URL (you are already signed in) and click My Network (#nav-network).
- 2In “People you may know”, click Priya Nair's name (.person-name inside [data-testid="person-card"][data-person-id="priya-nair"]).
- 3Assert the URL contains #/in/priya-nair and #profile-name reads Priya Nair.
- 4Click #connect-button and assert it now reads “Pending” and #connection-status says the invitation was sent.
- 5Click Withdraw (#withdraw-button) and confirm with #confirm-withdraw in the #withdraw-modal dialog.
- 6Assert #connect-button reads “Connect” again, #withdraw-button is gone and #connection-status says “Invitation to Priya Nair withdrawn”.
Validation Checks
- The browser is on Priya Nair's profile.
- The invitation was withdrawn and the Connect button is back.
- The confirmation dialog is closed.
- The test makes at least two assertions.
Fixtures
- alex@connectin.test
- Password
- Connect@2026
- Account name
- Alex Morgan
- Password rules
- 8+ characters with an uppercase letter, a number and a special character
- Locations
- Bengaluru, India · Berlin, Germany · London, UK · New York, US · Toronto, Canada
- Featured company
- Northwind Labs (#/company/northwind-labs)
Cloud Execution & Grading Guide
This Easy Playwright Challenges exercise runs inside TargetQA's managed cloud sandbox using Playwright (TypeScript, JavaScript, Python, Java, C#). Every submission runs inside an isolated headless Chromium container with pre-synced drivers, capturing live console logs, DOM assertions, and a 720p step-by-step video replay.
- Supported stacks: TypeScript (@playwright/test) · JavaScript (@playwright/test) · Python (Playwright + pytest) · Java (Playwright for Java + JUnit 5) · C# (Playwright for .NET + NUnit)
- Zero local setup: Use the pre-declared
TEST_URLvariable so your script targets the live ConnectIn sandbox reliably without hardcoding hosts. - Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 4 acceptance checks and earn 30 points.
Playwright · Playwright Challenges Practice Track · ConnectIn