Skip to content

Commit 538b3ac

Browse files
[Canvas] Fix flaky custom element functional tests (#65908)
* 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>
1 parent a87202e commit 538b3ac

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

x-pack/test/functional/page_objects/canvas_page.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ export function CanvasPageProvider({ getService }: FtrProviderContext) {
3333

3434
async fillOutCustomElementForm(name: string, description: string) {
3535
// Fill out the custom element form and submit it
36-
await testSubjects.setValue('canvasCustomElementForm-name', name);
37-
await testSubjects.setValue('canvasCustomElementForm-description', description);
36+
await testSubjects.setValue('canvasCustomElementForm-name', name, {
37+
clearWithKeyboard: true,
38+
});
39+
await testSubjects.setValue('canvasCustomElementForm-description', description, {
40+
clearWithKeyboard: true,
41+
});
3842

3943
await testSubjects.click('canvasCustomElementForm-submit');
4044
},

0 commit comments

Comments
 (0)