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
# Conflicts:
#	test/functional/apps/visualize/_area_chart.js
  • Loading branch information
flash1293 committed Jun 3, 2020
1 parent 641b5f0 commit e93043a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export default function ({ getService, getPageObjects }) {
await initAreaChart();
});

it('should save and load with special characters', async function () {
after(async function() {
await security.testUser.restoreDefaults();
});

it('should save and load with special characters', async function() {
const vizNamewithSpecialChars = vizName1 + '/?&=%';
await PageObjects.visualize.saveVisualizationExpectSuccessAndBreadcrumb(
vizNamewithSpecialChars
Expand Down Expand Up @@ -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();
});
});

Expand Down

0 comments on commit e93043a

Please sign in to comment.