mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
backport stabilization fix (#118311)
This commit is contained in:
parent
3e90fbc36d
commit
570556b65a
1 changed files with 6 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue