Fixes some types problems (#167228)

## Summary

Fixes some types problems in our FTs which are blocking PRs with changes
in the functional tests suites. (type diff check is failing)
This commit is contained in:
Stratoula Kalafateli 2023-09-26 15:18:00 +03:00 committed by GitHub
parent 535edadeaf
commit ce33109651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -217,6 +217,7 @@ GET _search
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);
}
@ -257,7 +258,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', () =>

View file

@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const security = getService('security');
const { dashboardControls, timePicker, common, dashboard } = getPageObjects([
const { dashboardControls, timePicker, dashboard } = getPageObjects([
'dashboardControls',
'timePicker',
'dashboard',

View file

@ -14,7 +14,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const log = getService('log');
const inspector = getService('inspector');
const filterBar = getService('filterBar');
const monacoEditor = getService('monacoEditor');
const PageObjects = getPageObjects(['visualize', 'visEditor', 'visChart', 'timePicker']);
describe('inspector', function describeIndexTests() {