I am looking to test my app using Puppeteer. My app was built with REACT and TypeScript. How can I properly set the input? Please refer to the 2 attachments.
I have attempted the following approaches, but have not been successful:
1. Attempt:
await page.waitForSelector('#MuiButtonBase-root');
// await page.select('#MuiTouchRipple-root');
await page.waitForSelector('#name');
await page.type('#name', 'Hello');
2. Attempt:
await page.$eval('#MuiDialogContent-root input:MuiFormControl-root:nth-child(1)', el => el.value = 'Hello');