I'm new to Playwright and I am trying to test a feature containing monaco editor, and couldn't find anything related in Playwright docs and forums.
This is my test:
async ({ page }) => {
const testPage= new TestPage(page);
await testPage.navigateTo();
//dosomething
await page.waitForSelector(#monaco-editor-selector);
//Paste a script in monaco editor
}
Please help!
const { test,expect } = require('@playwright/test')
test('Login', async({ page }) => {
await page.goto('https://URL')
await expect(page).toHaveTitle('someTITLE')
await page.click('selector'); //if need the step
await page.fill('#monaco-editor-selector', 'YOUR_CODE');
})
Try this - maybe it helps