move role reset into the top level after clause (#66971)
This commit is contained in:
parent
dfc3ccffc9
commit
1b89dddde5
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue