Skip to content

Commit

Permalink
[Canvas] Fix flaky custom element functional tests (#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 <[email protected]>
  • Loading branch information
cqliu1 and elasticmachine authored May 19, 2020
1 parent 428fd06 commit 9c11243
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

# Canvas
/x-pack/plugins/canvas/ @elastic/kibana-canvas
/x-pack/test/functional/apps/canvas/ @elastic/kibana-canvas

# Observability UIs
/x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui
Expand Down
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 9c11243

Please sign in to comment.