Skip to content

Commit 1b89ddd

Browse files
authored
move role reset into the top level after clause (#66971)
1 parent dfc3ccf commit 1b89ddd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/apps/visualize/_area_chart.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export default function({ getService, getPageObjects }) {
7070
await initAreaChart();
7171
});
7272

73+
after(async function() {
74+
await security.testUser.restoreDefaults();
75+
});
76+
7377
it('should save and load with special characters', async function() {
7478
const vizNamewithSpecialChars = vizName1 + '/?&=%';
7579
await PageObjects.visualize.saveVisualizationExpectSuccessAndBreadcrumb(
@@ -296,7 +300,6 @@ export default function({ getService, getPageObjects }) {
296300
.pop()
297301
.replace('embed=true', '');
298302
await PageObjects.common.navigateToUrl('visualize', embedUrl, { useActualUrl: true });
299-
await security.testUser.restoreDefaults();
300303
});
301304
});
302305

0 commit comments

Comments
 (0)