From d1ed614467ee771b6ec0453834d3976418916b7b Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Mon, 22 Feb 2021 09:38:39 +0100 Subject: [PATCH] add new FTR test --- .../test_suites/core_plugins/history_block.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/plugin_functional/test_suites/core_plugins/history_block.ts b/test/plugin_functional/test_suites/core_plugins/history_block.ts index 96145f6ce3da..61eea8be2d20 100644 --- a/test/plugin_functional/test_suites/core_plugins/history_block.ts +++ b/test/plugin_functional/test_suites/core_plugins/history_block.ts @@ -52,6 +52,15 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide await PageObjects.common.clickConfirmOnModal(); expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block/foo'); }); + it('allows navigating back without prompt once the block handler has been disposed', async () => { + await testSubjects.click('applink-intra-test'); + await PageObjects.common.clickConfirmOnModal(); + expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block/foo'); + + await testSubjects.click('applink-intra-test'); + expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block'); + expect(await browser.getCurrentUrl()).not.to.contain('/foo'); + }); }); }); }