Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/functional/services/field_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export class FieldEditorService extends FtrService {
const textarea = await editor.findByClassName('monaco-mouse-cursor-text');

await textarea.click();
await this.browser.pressKeys(script);
// To avoid issue with the timing needed for Selenium to write the script and the monaco editor
// syntax validation kicking in, we loop through all the chars of the script and enter
// them one by one (instead of calling "await this.browser.pressKeys(script);").
for (const letter of script.split('')) {
await this.browser.pressKeys(letter);
}
}
public async save() {
await this.testSubjects.click('fieldSaveButton');
Expand Down