import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner'; import { editable, getDocFromElement, fullpage, quickInsert, } from '../_helpers'; import { mountEditor, goToEditorTestingWDExample, } from '../../__helpers/testing-example-helpers'; BrowserTestCase( 'inside-table.ts: Insert panel into table, add text, change panel type', { skip: ['edge'] }, async (client: any, testName: string) => { const page = await goToEditorTestingWDExample(client); await mountEditor(page, { appearance: fullpage.appearance, allowPanel: true, allowTables: { advanced: true, }, }); await page.click(editable); // Insert table await quickInsert(page, 'Table'); await page.type(editable, 'this has a strong mark'); const doc = await page.$eval(editable, getDocFromElement); expect(doc).toMatchCustomDocSnapshot(testName); }, );