Skip to content

Commit

Permalink
[Canvas] Fix flaky custom element functional tests (elastic#65908)
Browse files Browse the repository at this point in the history
* Enable clearWithKeyboard option when filling out custom elements form

* Added canvas functional tests path to CODEOWNERS

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
cqliu1 and elasticmachine committed May 21, 2020
1 parent d5aac4c commit 1e37967
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x-pack/test/functional/page_objects/canvas_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ export function CanvasPageProvider({ getService }: FtrProviderContext) {

async fillOutCustomElementForm(name: string, description: string) {
// Fill out the custom element form and submit it
await testSubjects.setValue('canvasCustomElementForm-name', name);
await testSubjects.setValue('canvasCustomElementForm-description', description);
await testSubjects.setValue('canvasCustomElementForm-name', name, {
clearWithKeyboard: true,
});
await testSubjects.setValue('canvasCustomElementForm-description', description, {
clearWithKeyboard: true,
});

await testSubjects.click('canvasCustomElementForm-submit');
},
Expand Down

0 comments on commit 1e37967

Please sign in to comment.