@@ -14,7 +14,7 @@ describe('dialog', () => {
1414
1515 it ( 'should open a dialog' , ( ) => {
1616 element ( by . id ( 'default' ) ) . click ( ) ;
17- expectToExist ( 'md -dialog-container' ) ;
17+ expectToExist ( 'mat -dialog-container' ) ;
1818 screenshot ( 'simple dialog opened' ) ;
1919 } ) ;
2020
@@ -29,40 +29,40 @@ describe('dialog', () => {
2929
3030 await waitForDialog ( ) ;
3131 clickOnBackrop ( ) ;
32- expectToExist ( 'md -dialog-container' , false ) ;
32+ expectToExist ( 'mat -dialog-container' , false ) ;
3333 } ) ;
3434
3535 it ( 'should close by pressing escape' , async ( ) => {
3636 element ( by . id ( 'default' ) ) . click ( ) ;
3737
3838 await waitForDialog ( ) ;
3939 pressKeys ( Key . ESCAPE ) ;
40- expectToExist ( 'md -dialog-container' , false ) ;
40+ expectToExist ( 'mat -dialog-container' , false ) ;
4141 } ) ;
4242
4343 it ( 'should close by pressing escape when the first tabbable element has lost focus' ,
4444 async ( ) => {
4545 element ( by . id ( 'default' ) ) . click ( ) ;
4646
4747 await waitForDialog ( ) ;
48- clickElementAtPoint ( 'md -dialog-container' , { x : 0 , y : 0 } ) ;
48+ clickElementAtPoint ( 'mat -dialog-container' , { x : 0 , y : 0 } ) ;
4949 pressKeys ( Key . ESCAPE ) ;
50- expectToExist ( 'md -dialog-container' , false ) ;
50+ expectToExist ( 'mat -dialog-container' , false ) ;
5151 } ) ;
5252
5353 it ( 'should close by clicking on the "close" button' , async ( ) => {
5454 element ( by . id ( 'default' ) ) . click ( ) ;
5555
5656 await waitForDialog ( ) ;
5757 element ( by . id ( 'close' ) ) . click ( ) ;
58- expectToExist ( 'md -dialog-container' , false ) ;
58+ expectToExist ( 'mat -dialog-container' , false ) ;
5959 } ) ;
6060
6161 it ( 'should focus the first focusable element' , async ( ) => {
6262 element ( by . id ( 'default' ) ) . click ( ) ;
6363
6464 await waitForDialog ( ) ;
65- expectFocusOn ( 'md -dialog-container input' ) ;
65+ expectFocusOn ( 'mat -dialog-container input' ) ;
6666 } ) ;
6767
6868 it ( 'should restore focus to the element that opened the dialog' , async ( ) => {
@@ -88,19 +88,19 @@ describe('dialog', () => {
8888
8989 await waitForDialog ( ) ;
9090 clickOnBackrop ( ) ;
91- expectToExist ( 'md -dialog-container' ) ;
91+ expectToExist ( 'mat -dialog-container' ) ;
9292 } ) ;
9393
9494 it ( 'should be able to prevent closing by pressing escape' , async ( ) => {
9595 element ( by . id ( 'disabled' ) ) . click ( ) ;
9696
9797 await waitForDialog ( ) ;
9898 pressKeys ( Key . ESCAPE ) ;
99- expectToExist ( 'md -dialog-container' ) ;
99+ expectToExist ( 'mat -dialog-container' ) ;
100100 } ) ;
101101
102102 function waitForDialog ( ) {
103- return waitForElement ( 'md -dialog-container' ) ;
103+ return waitForElement ( 'mat -dialog-container' ) ;
104104 }
105105
106106 function clickOnBackrop ( ) {
0 commit comments