{ const canvas = within(canvasElement); const webcamButton = await canvas.findByLabelText("Capture from camera"); userEvent.click(webcamButton); userEvent.click(await canvas.findByTitle("select video source")); userEvent.click(await canvas.findByLabelText("select source")); userEvent.click(await canvas.findByLabelText("Upload file")); userEvent.click(await canvas.findByLabelText("Paste from clipboard")); }} />