[type check] Fix ./test/tsconfig.json TypeScript errors (#167239)

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
Thomas Watson 2023-09-26 20:33:06 +02:00 committed by GitHub
parent 838500336c
commit f42b40fe35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,11 +213,10 @@ GET _search
'pressRight',
'pressLeft',
'pressLeft',
];
] as const;
for (const keyPress of keyPresses) {
await PageObjects.console.sleepForDebouncePeriod();
log.debug('Key', keyPress);
// @ts-ignore
await PageObjects.console[keyPress]();
expect(await PageObjects.console.isAutocompleteVisible()).to.be.eql(false);
}
@ -258,7 +257,7 @@ GET _search
for (const char of [method.at(-1), ' ', '_']) {
await PageObjects.console.sleepForDebouncePeriod();
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', () =>