Skip to content

Commit d1ed614

Browse files
committed
add new FTR test
1 parent d360bb5 commit d1ed614

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/plugin_functional/test_suites/core_plugins/history_block.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
5252
await PageObjects.common.clickConfirmOnModal();
5353
expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block/foo');
5454
});
55+
it('allows navigating back without prompt once the block handler has been disposed', async () => {
56+
await testSubjects.click('applink-intra-test');
57+
await PageObjects.common.clickConfirmOnModal();
58+
expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block/foo');
59+
60+
await testSubjects.click('applink-intra-test');
61+
expect(await browser.getCurrentUrl()).to.contain('/app/core_history_block');
62+
expect(await browser.getCurrentUrl()).not.to.contain('/foo');
63+
});
5564
});
5665
});
5766
}

0 commit comments

Comments
 (0)