mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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:
parent
1fc5a7d3fc
commit
1c8a4500ee
2 changed files with 7 additions and 6 deletions
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue