@@ -23,32 +23,32 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
2323 it ( 'prevents navigation if user click cancel on the confirmation dialog' , async ( ) => {
2424 await testSubjects . click ( 'applink-external-test' ) ;
2525
26- await testSubjects . existOrFail ( 'navigationBlockConfirmModAl ' ) ;
26+ await testSubjects . existOrFail ( 'navigationBlockConfirmModal ' ) ;
2727 await PageObjects . common . clickCancelOnModal ( false ) ;
2828 expect ( await browser . getCurrentUrl ( ) ) . to . contain ( '/app/core_history_block' ) ;
2929 } ) ;
3030 it ( 'allows navigation if user click confirm on the confirmation dialog' , async ( ) => {
3131 await testSubjects . click ( 'applink-external-test' ) ;
3232
33- await testSubjects . existOrFail ( 'navigationBlockConfirmModAl ' ) ;
33+ await testSubjects . existOrFail ( 'navigationBlockConfirmModal ' ) ;
3434 await PageObjects . common . clickConfirmOnModal ( ) ;
3535 expect ( await browser . getCurrentUrl ( ) ) . to . contain ( '/app/home' ) ;
3636 } ) ;
3737 } ) ;
3838
39- describe ( 'when navigating to another app' , ( ) => {
39+ describe ( 'when navigating to the same app' , ( ) => {
4040 it ( 'prevents navigation if user click cancel on the confirmation dialog' , async ( ) => {
4141 await testSubjects . click ( 'applink-intra-test' ) ;
4242
43- await testSubjects . existOrFail ( 'navigationBlockConfirmModAl ' ) ;
43+ await testSubjects . existOrFail ( 'navigationBlockConfirmModal ' ) ;
4444 await PageObjects . common . clickCancelOnModal ( false ) ;
4545 expect ( await browser . getCurrentUrl ( ) ) . to . contain ( '/app/core_history_block' ) ;
4646 expect ( await browser . getCurrentUrl ( ) ) . not . to . contain ( '/foo' ) ;
4747 } ) ;
4848 it ( 'allows navigation if user click confirm on the confirmation dialog' , async ( ) => {
4949 await testSubjects . click ( 'applink-intra-test' ) ;
5050
51- await testSubjects . existOrFail ( 'navigationBlockConfirmModAl ' ) ;
51+ await testSubjects . existOrFail ( 'navigationBlockConfirmModal ' ) ;
5252 await PageObjects . common . clickConfirmOnModal ( ) ;
5353 expect ( await browser . getCurrentUrl ( ) ) . to . contain ( '/app/core_history_block/foo' ) ;
5454 } ) ;
0 commit comments