@@ -36,7 +36,7 @@ describe('Modals demo page test suite: Service examples', () => {
3636 const nestedDemo = modals . exampleDemosArr . serviceNested ;
3737 const btnText = 'Open first modal' ;
3838 const open2ndModal = 'Open second modal' ;
39- const close1stModal = 'Close first modal ' ;
39+ const close1stModal = 'Close self ' ;
4040 const firstModalTitle = 'First modal' ;
4141 const secondModalTitle = 'Second modal' ;
4242
@@ -53,15 +53,15 @@ describe('Modals demo page test suite: Service examples', () => {
5353 } ) ;
5454
5555 it ( `when user clicks on the button "Open second modal" then the second modal with title "Second modal" is opened,
56- "Close first modal " is present` , ( ) => {
56+ "Close self " is present` , ( ) => {
5757 modals . clickByText ( nestedDemo , btnText ) ;
5858 modals . clickByText ( modals . modalBtn , open2ndModal ) ;
5959 modals . isModalTitleIs ( secondModalTitle ) ;
6060 modals . isButtonExist ( modals . modalBody , close1stModal , 3 ) ;
6161 modals . checkElementsQuantity ( modals . modalContainer , 2 ) ;
6262 } ) ;
6363
64- it ( 'when user clicks on the button "Close first modal " then the first modal is closed' , ( ) => {
64+ it ( 'when user clicks on the button "Close self " then the first modal is closed' , ( ) => {
6565 modals . clickByText ( nestedDemo , btnText ) ;
6666 modals . clickByText ( modals . modalBtn , open2ndModal ) ;
6767 modals . clickByText ( modals . modalRedBtn , close1stModal ) ;
0 commit comments