mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[type check] Fix ./test/tsconfig.json TypeScript errors (#167239)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
838500336c
commit
f42b40fe35
1 changed files with 2 additions and 3 deletions
|
@ -213,11 +213,10 @@ GET _search
|
||||||
'pressRight',
|
'pressRight',
|
||||||
'pressLeft',
|
'pressLeft',
|
||||||
'pressLeft',
|
'pressLeft',
|
||||||
];
|
] as const;
|
||||||
for (const keyPress of keyPresses) {
|
for (const keyPress of keyPresses) {
|
||||||
await PageObjects.console.sleepForDebouncePeriod();
|
await PageObjects.console.sleepForDebouncePeriod();
|
||||||
log.debug('Key', keyPress);
|
log.debug('Key', keyPress);
|
||||||
// @ts-ignore
|
|
||||||
await PageObjects.console[keyPress]();
|
await PageObjects.console[keyPress]();
|
||||||
expect(await PageObjects.console.isAutocompleteVisible()).to.be.eql(false);
|
expect(await PageObjects.console.isAutocompleteVisible()).to.be.eql(false);
|
||||||
}
|
}
|
||||||
|
@ -258,7 +257,7 @@ GET _search
|
||||||
for (const char of [method.at(-1), ' ', '_']) {
|
for (const char of [method.at(-1), ' ', '_']) {
|
||||||
await PageObjects.console.sleepForDebouncePeriod();
|
await PageObjects.console.sleepForDebouncePeriod();
|
||||||
log.debug('Key type "%s"', char);
|
log.debug('Key type "%s"', char);
|
||||||
await PageObjects.console.enterText(char ?? ''); // e.g. 'Post ' -> 'Post _'
|
await PageObjects.console.enterText(char!); // e.g. 'Post ' -> 'Post _'
|
||||||
}
|
}
|
||||||
|
|
||||||
await retry.waitFor('autocomplete to be visible', () =>
|
await retry.waitFor('autocomplete to be visible', () =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue