import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner'; import { editable, getDocFromElement, fullpage, quickInsert, } from '../_helpers'; import { goToEditorTestingWDExample, mountEditor, } from '../../__helpers/testing-example-helpers'; import { selectors } from './_utils'; BrowserTestCase( 'insert-link.ts: Insert link in panel by typing Markdown', // IE skipped due to malformed input error: https://product-fabric.atlassian.net/browse/ED-7043 { 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, '[Atlassian](https://www.atlassian.com/)'); const doc = await page.$eval(editable, getDocFromElement); expect(doc).toMatchCustomDocSnapshot(testName); }, );