import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner'; import { editable, getDocFromElement, fullpage, insertBlockMenuItem, } from '../_helpers'; import { selectors } from './_utils'; import { mountEditor, goToEditorTestingWDExample, } from '../../__helpers/testing-example-helpers'; BrowserTestCase( 'insert-toolbar-menu.ts: Insert panel via toolbar menu', { skip: ['safari', 'edge'] }, async (client: any, testName: string) => { const page = await goToEditorTestingWDExample(client); await mountEditor(page, { appearance: fullpage.appearance, allowPanel: true, }); await page.click(editable); await insertBlockMenuItem(page, 'Info panel', undefined, true); await page.waitForSelector(selectors.PANEL_EDITOR_CONTAINER); await page.type(editable, 'this text should be in the panel'); const doc = await page.$eval(editable, getDocFromElement); expect(doc).toMatchCustomDocSnapshot(testName); }, );