Skip to content

Commit

Permalink
add test in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Apr 3, 2020
1 parent c0f82fd commit db71f2e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x-pack/test/functional/apps/maps/embeddable/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function({ getPageObjects, getService }) {
const dashboardPanelActions = getService('dashboardPanelActions');
const inspector = getService('inspector');
const testSubjects = getService('testSubjects');
const browser = getService('browser');

describe('embed in dashboard', () => {
before(async () => {
Expand Down Expand Up @@ -111,5 +112,15 @@ export default function({ getPageObjects, getService }) {
const afterRefreshTimerTimestamp = await getRequestTimestamp();
expect(beforeRefreshTimerTimestamp).not.to.equal(afterRefreshTimerTimestamp);
});

// see https://github.com/elastic/kibana/issues/61596 on why it is specific to maps
it("dashboard's back button should work", async () => {
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.preserveCrossAppState();
await PageObjects.dashboard.loadSavedDashboard('map embeddable example');
await PageObjects.dashboard.waitForRenderComplete();
await browser.goBack();
expect(await PageObjects.dashboard.onDashboardLandingPage()).to.be(true);
});
});
}

0 comments on commit db71f2e

Please sign in to comment.