{ const canvas = within(canvasElement); const expand_btn = canvas.getByRole("button", { name: "View in full screen" }); await userEvent.click(expand_btn); }} /> { const canvas = within(canvasElement); const webcamButton = await canvas.findByLabelText("Capture from camera"); userEvent.click(webcamButton); userEvent.click(await canvas.findByTitle("grant webcam access")); userEvent.click(await canvas.findByLabelText("Upload file")); userEvent.click(await canvas.findByLabelText("Paste from clipboard")); }} />