Skip to content

Commit

Permalink
Fix import_saved_objects_between_versions.ts FTR test (#122243) (#1…
Browse files Browse the repository at this point in the history
…22553)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 389a87d)

Co-authored-by: Pierre Gayvallet <[email protected]>
  • Loading branch information
kibanamachine and pgayvallet authored Jan 10, 2022
1 parent 44391b7 commit 0277ab6
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,26 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
if (parts.length !== 3) {
throw new Error('text not loaded yet');
}
return Number.parseInt(parts[1], 10);
const count = Number.parseInt(parts[1], 10);
if (count === 0) {
throw new Error('text not loaded yet');
}
return count;
});
};

// Failing: See https://github.com/elastic/kibana/issues/121968
describe.skip('FOO Export import saved objects between versions', function () {
describe('Export import saved objects between versions', function () {
before(async function () {
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
await kibanaServer.uiSettings.replace({});
await PageObjects.settings.navigateTo();
await PageObjects.settings.clickKibanaSavedObjects();
});

beforeEach(async () => {
await PageObjects.savedObjects.waitTableIsLoaded();
});

after(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
});
Expand Down

0 comments on commit 0277ab6

Please sign in to comment.