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