Skip to content

Commit

Permalink
add new FTR test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Feb 22, 2021
1 parent d360bb5 commit d1ed614
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
});
}

0 comments on commit d1ed614

Please sign in to comment.