Skip to content

Commit

Permalink
Enable clearWithKeyboard option when filling out custom elements form
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed May 12, 2020
1 parent 62434fe commit 66f3136
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 66f3136

Please sign in to comment.