An epoxy customer can see there is something on the concrete without knowing whether it is paint, sealer or another coating. In the existing planner, “Not sure yet” is a visible answer for both area and surface. Each answer occupies its own position in the flow and is displayed with its question’s summary label.

Separate equal labels by step

The client’s Map keys selections by step index. Two steps can store the same visible string and still round-trip independently. A Set of answer strings would collapse the two values. A dictionary keyed by the labels displayed on buttons would have a similar collision. The four-question sequence is fixed, so the index remains a useful address until a design introduces conditional insertion or reordering.

await page.goto('/epoxy/'); await page.getByRole('button', { name: 'Garage', exact: true }).click(); await page.getByRole('button', { name: 'Not sure yet', exact: true }).click(); await page.getByRole('button', { name: 'Not sure yet', exact: true }).click(); await page.getByRole('button', { name: 'Just planning', exact: true }).click(); await page.getByLabel('WA postcode').fill('6062'); await page.getByLabel('WA postcode').press('Enter'); const summary = page.locator('[data-answer-summary]'); await expect(summary.getByText('Not sure yet', { exact: true })).toHaveCount(2); await expect(summary.locator('dt')).toHaveText(['Space', 'Area', 'Surface', 'Timing', 'WA postcode']); 

Keep unknown and unanswered distinct

There’s no skip action on these questions. Before a click, the Map has no entry for that step. After an explicit unknown answer, the Map holds the displayed label. If a future API takes this data, use a stable value for unknown and make the required fields explicit in the schema. Test that an omitted surface fails validation while a deliberate unknown survives serialisation. The browser example tests the current distinction at the summary boundary and leaves any slab recommendation to an installer.

Inspect the two unknown answers separately when testing changes. Revisit Surface and pick Bare concrete. The Area value should still read Not sure yet when the final list is rebuilt.

Perth Quotes garage floor coating planner is the live preview. Online enquiries are closed.