Send a message and wait for the auto-reply
- Explicit waits
- Dynamic content
- Chat UIs
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
Send Daniel Okafor a message from the messaging drawer and wait — without fixed sleeps — for his automatic reply to arrive about two seconds later.
Your Task
- 1Open TEST_URL (you are already signed in) and click Messaging (#nav-messaging).
- 2In #messaging-drawer, open the conversation with Daniel Okafor ([data-testid="conversation"][data-conversation-id="daniel"]).
- 3Type “Hi Daniel, are you free for a call on Thursday?” into #message-input and click Send (#message-send).
- 4Assert your message appears in #message-thread and #message-input is empty.
- 5Wait for the reply ([data-testid="message"][data-auto-reply="true"]) and assert it says “Thursday works for me! How about 3 pm?” and the typing indicator (#typing-indicator) is gone.
Validation Checks
- Your message is in the thread and the input is cleared.
- Daniel's auto-reply is shown.
- The typing indicator has disappeared.
- The test uses no fixed sleeps.
Constraints
- Do not use fixed sleeps — wait for the reply element itself.
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 Medium 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 50 points.
Playwright · Playwright Challenges Practice Track · ConnectIn