Skip to content

Commit

Permalink
move role reset into the top level after clause (#66971)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored May 19, 2020
1 parent dfc3ccf commit 1b89ddd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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();
});
});

Expand Down

0 comments on commit 1b89ddd

Please sign in to comment.