Skip to content

Commit

Permalink
🐛 Make it wait before typing again
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jun 16, 2021
1 parent b1015fe commit 991fcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/lens/formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
let element = await find.byCssSelector('.monaco-editor');
expect(await element.getVisibleText()).to.equal(`count(kql='Men\\'s Clothing ')`);

await PageObjects.common.sleep(100);
await PageObjects.lens.typeFormula('count(kql=');
input = await find.activeElement();
await input.type(`Men\'s Clothing`);
await input.pressKeys(browser.keys.ESCAPE);

element = await find.byCssSelector('.monaco-editor');
expect(await element.getVisibleText()).to.equal(`count(kql='Men\\'s Clothing')`);
Expand Down

0 comments on commit 991fcf1

Please sign in to comment.