move role reset into the top level after clause (#66971)

This commit is contained in:
Joe Reuter 2020-05-19 17:51:33 +02:00 committed by GitHub
parent dfc3ccffc9
commit 1b89dddde5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,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(
@ -296,7 +300,6 @@ export default function({ getService, getPageObjects }) {
.pop()
.replace('embed=true', '');
await PageObjects.common.navigateToUrl('visualize', embedUrl, { useActualUrl: true });
await security.testUser.restoreDefaults();
});
});