Unskip flaky tests (#126743) (#126884)

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 77ac1d822f)

Co-authored-by: Muhammad Ibragimov <53621505+mibragimov@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-03-04 04:41:41 -05:00 committed by GitHub
parent 1fc5a7d3fc
commit 1c8a4500ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -13,24 +13,25 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const log = getService('log');
const PageObjects = getPageObjects(['common', 'console']);
// Failing: See https://github.com/elastic/kibana/issues/126421
describe.skip('console autocomplete feature', function describeIndexTests() {
describe('console autocomplete feature', function describeIndexTests() {
this.tags('includeFirefox');
before(async () => {
log.debug('navigateTo console');
await PageObjects.common.navigateToApp('console');
// Ensure that the text area can be interacted with
await PageObjects.console.dismissTutorial();
await PageObjects.console.clearTextArea();
});
it('should provide basic auto-complete functionality', async () => {
await PageObjects.console.enterRequest();
await PageObjects.console.enterText(`{\n\t"query": {`);
await PageObjects.console.pressEnter();
await PageObjects.console.promptAutocomplete();
expect(PageObjects.console.isAutocompleteVisible()).to.be.eql(true);
});
// FLAKY: https://github.com/elastic/kibana/issues/126414
describe.skip('with a missing comma in query', () => {
describe('with a missing comma in query', () => {
const LINE_NUMBER = 4;
beforeEach(async () => {
await PageObjects.console.clearTextArea();

View file

@ -85,8 +85,8 @@ export class ConsolePageObject extends FtrService {
public async promptAutocomplete() {
const textArea = await this.testSubjects.find('console-textarea');
// There should be autocomplete for this on all license levels
await textArea.pressKeys([Key.CONTROL, Key.SPACE]);
await textArea.clickMouseButton();
await textArea.type('b');
await this.retry.waitFor('autocomplete to be visible', () => this.isAutocompleteVisible());
}