···72 );
7374 // Fill all three inputs and submit all three forms
75- const inputs = h.frame().locator(".preview-container input");
76- const buttons = h.frame().locator(".preview-container button");
7778 await inputs.nth(0).fill("Alice");
79 await inputs.nth(1).fill("Bob");
···72 );
7374 // Fill all three inputs and submit all three forms
75+ const inputs = h.frame().getByTestId("preview-container").locator("input");
76+ const buttons = h.frame().getByTestId("preview-container").locator("button");
7778 await inputs.nth(0).fill("Alice");
79 await inputs.nth(1).fill("Bob");