Skip to content

Commit

Permalink
always restore panels in session. Fix maps test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed May 4, 2021
1 parent 0714506 commit c18a976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function getUrlGeneratorState({
useHash: false,
preserveSavedFilters: false,
viewMode: appState.viewMode,
panels: getDashboardId() ? undefined : appState.panels,
panels: appState.panels,
searchSessionId: shouldRestoreSearchSession ? data.search.session.getSessionId() : undefined,
refreshInterval: shouldRestoreSearchSession
? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function ({ getPageObjects, getService }) {
describe('save as', () => {
it('should return to dashboard and add new panel', async () => {
await PageObjects.maps.saveMap('Clone of map embeddable example');
await PageObjects.dashboard.waitForRenderComplete();
await PageObjects.header.waitUntilLoadingHasFinished();
const panelCount = await PageObjects.dashboard.getPanelCount();
expect(panelCount).to.equal(3);
});
Expand Down

0 comments on commit c18a976

Please sign in to comment.