The form has three sections — each with an identically-named Submit button. Your job is to click only the Section 2 button.
A broad locator like getByRole('button', { name: 'Submit' }) will match all three buttons and trigger a strict-mode violation. The correct approach is the scoped locator technique — select the parent container first, then navigate to the button inside it.
page is ready. All three sections have id and data-testid attributes — use them.
Scoped locator, a direct
id, ordata-testid— all correctly target the Section 2 button.