BrauzerLab
← Back to missions 47 / 50

Conditional Form

Medium ~300 sec

The shipping form has a country dropdown. When “USA” is selected, the hidden state field appears automatically. Your task: first select the country, then — once the state field appears — pick a state, and finally submit the form.

This scenario combines a multi-step test: selectOption, waiting for the DOM to change dynamically (auto-wait), and sequential steps.

page is already available — write your code below.

TASK

Complete the conditional shipping form.

Provided for you
import { test, expect } from '@playwright/test';

test('Conditional Form', async ({ page }) => {
  await page.goto('https://lab.local/mission/conditional-form');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/conditional-form
Loading...
Results will appear here — press Run or Check.