Skip to content

Commit

Permalink
Drop update
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour committed May 12, 2021
1 parent 21ed8e4 commit 59194e0
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions test/functional/apps/visualize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,19 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
describe('new charts library visualize ciGroup7', function () {
this.tags('ciGroup7');

before(async () => await update(false));

after(async () => await update(true));
before(async () => {
await kibanaServer.uiSettings.update({
'visualization:visualize:legacyChartsLibrary': false,
});
await browser.refresh();
});

after(async () => {
await kibanaServer.uiSettings.update({
'visualization:visualize:legacyChartsLibrary': true,
});
await browser.refresh();
});

// Test replaced vislib chart types
loadTestFile(require.resolve('./_area_chart'));
Expand Down Expand Up @@ -104,11 +114,4 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./_vega_chart'));
});
});

async function update(x: boolean) {
await kibanaServer.uiSettings.update({
'visualization:visualize:legacyChartsLibrary': x,
});
await browser.refresh();
}
}

0 comments on commit 59194e0

Please sign in to comment.