[7.7] move role reset into the top level after clause (#66971) (#68054)

This commit is contained in:
Joe Reuter 2020-06-03 16:30:15 +02:00 committed by GitHub
parent 86e55f41fc
commit 54419a2ca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,10 @@ export default function ({ getService, getPageObjects }) {
await initAreaChart();
});
after(async function () {
await security.testUser.restoreDefaults();
});
it('should save and load with special characters', async function () {
const vizNamewithSpecialChars = vizName1 + '/?&=%';
await PageObjects.visualize.saveVisualizationExpectSuccessAndBreadcrumb(
@ -289,7 +293,6 @@ export default function ({ getService, getPageObjects }) {
const url = await browser.getCurrentUrl();
const embedUrl = url.split('/visualize/').pop().replace('embed=true', '');
await PageObjects.common.navigateToUrl('visualize', embedUrl);
await security.testUser.restoreDefaults();
});
});