Skip to content

Commit

Permalink
Opening up Canvas app first
Browse files Browse the repository at this point in the history
  • Loading branch information
poffdeluxe committed Jan 14, 2020
1 parent b1ee9f5 commit 8a251ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/test/functional/apps/canvas/custom_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default function canvasSmokeTest({ getService, getPageObjects }: FtrProvi
await esArchiver.loadIfNeeded('logstash_functional');
await esArchiver.load('canvas/default');

// open canvas home
await PageObjects.common.navigateToApp('canvas');

// load test workpad
await PageObjects.common.navigateToApp('canvas', {
hash: '/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1',
Expand All @@ -30,7 +33,7 @@ export default function canvasSmokeTest({ getService, getPageObjects }: FtrProvi

it('creates a custom element from an element when prompted', async () => {
// find the first workpad element (a markdown element) and click it to select it
testSubjects.click('canvasWorkpadPage > canvasWorkpadPageElementContent');
await testSubjects.click('canvasWorkpadPage > canvasWorkpadPageElementContent', 20000);

// click the "Save as new element" button
await find.clickByCssSelector('[aria-label="Save as new element"]', 20000);
Expand Down

0 comments on commit 8a251ab

Please sign in to comment.