Skip to content

Commit

Permalink
[Console] Unskip flaky test (#136195)
Browse files Browse the repository at this point in the history
* [Console] Unskip flaky test

* Wait until loading finishes

Co-authored-by: Muhammad Ibragimov <[email protected]>
  • Loading branch information
mibragimov and Muhammad Ibragimov authored Jul 18, 2022
1 parent 974c286 commit b1f33c4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/functional/apps/console/_console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,29 +171,26 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/135914
describe.skip('with folded/unfolded lines in request body', () => {
describe('with folded/unfolded lines in request body', () => {
const enterRequestWithBody = async () => {
await PageObjects.console.enterRequest();
await PageObjects.console.pressEnter();
await PageObjects.console.enterText('{\n\t\t"_source": []');
};

it('should save the state of folding/unfolding when navigating back to Console', async () => {
it('should restore the state of folding/unfolding when navigating back to Console', async () => {
await PageObjects.console.clearTextArea();
await enterRequestWithBody();
await PageObjects.console.clickFoldWidget();
await PageObjects.common.navigateToApp('home');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.common.navigateToApp('console');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.console.dismissTutorial();
expect(await PageObjects.console.hasFolds()).to.be(true);
});

it('should save the state of folding/unfolding when the page reloads', async () => {
// blocks the close help button for several seconds so just retry until we can click it.
await retry.try(async () => {
await PageObjects.console.collapseHelp();
});
it('should restore the state of folding/unfolding when the page reloads', async () => {
await PageObjects.console.clearTextArea();
await enterRequestWithBody();
await PageObjects.console.clickFoldWidget();
Expand Down

0 comments on commit b1f33c4

Please sign in to comment.