@@ -14,7 +14,7 @@ describe('dialog', () => {
14
14
15
15
it ( 'should open a dialog' , ( ) => {
16
16
element ( by . id ( 'default' ) ) . click ( ) ;
17
- expectToExist ( 'md -dialog-container' ) ;
17
+ expectToExist ( 'mat -dialog-container' ) ;
18
18
screenshot ( 'simple dialog opened' ) ;
19
19
} ) ;
20
20
@@ -29,40 +29,40 @@ describe('dialog', () => {
29
29
30
30
await waitForDialog ( ) ;
31
31
clickOnBackrop ( ) ;
32
- expectToExist ( 'md -dialog-container' , false ) ;
32
+ expectToExist ( 'mat -dialog-container' , false ) ;
33
33
} ) ;
34
34
35
35
it ( 'should close by pressing escape' , async ( ) => {
36
36
element ( by . id ( 'default' ) ) . click ( ) ;
37
37
38
38
await waitForDialog ( ) ;
39
39
pressKeys ( Key . ESCAPE ) ;
40
- expectToExist ( 'md -dialog-container' , false ) ;
40
+ expectToExist ( 'mat -dialog-container' , false ) ;
41
41
} ) ;
42
42
43
43
it ( 'should close by pressing escape when the first tabbable element has lost focus' ,
44
44
async ( ) => {
45
45
element ( by . id ( 'default' ) ) . click ( ) ;
46
46
47
47
await waitForDialog ( ) ;
48
- clickElementAtPoint ( 'md -dialog-container' , { x : 0 , y : 0 } ) ;
48
+ clickElementAtPoint ( 'mat -dialog-container' , { x : 0 , y : 0 } ) ;
49
49
pressKeys ( Key . ESCAPE ) ;
50
- expectToExist ( 'md -dialog-container' , false ) ;
50
+ expectToExist ( 'mat -dialog-container' , false ) ;
51
51
} ) ;
52
52
53
53
it ( 'should close by clicking on the "close" button' , async ( ) => {
54
54
element ( by . id ( 'default' ) ) . click ( ) ;
55
55
56
56
await waitForDialog ( ) ;
57
57
element ( by . id ( 'close' ) ) . click ( ) ;
58
- expectToExist ( 'md -dialog-container' , false ) ;
58
+ expectToExist ( 'mat -dialog-container' , false ) ;
59
59
} ) ;
60
60
61
61
it ( 'should focus the first focusable element' , async ( ) => {
62
62
element ( by . id ( 'default' ) ) . click ( ) ;
63
63
64
64
await waitForDialog ( ) ;
65
- expectFocusOn ( 'md -dialog-container input' ) ;
65
+ expectFocusOn ( 'mat -dialog-container input' ) ;
66
66
} ) ;
67
67
68
68
it ( 'should restore focus to the element that opened the dialog' , async ( ) => {
@@ -88,19 +88,19 @@ describe('dialog', () => {
88
88
89
89
await waitForDialog ( ) ;
90
90
clickOnBackrop ( ) ;
91
- expectToExist ( 'md -dialog-container' ) ;
91
+ expectToExist ( 'mat -dialog-container' ) ;
92
92
} ) ;
93
93
94
94
it ( 'should be able to prevent closing by pressing escape' , async ( ) => {
95
95
element ( by . id ( 'disabled' ) ) . click ( ) ;
96
96
97
97
await waitForDialog ( ) ;
98
98
pressKeys ( Key . ESCAPE ) ;
99
- expectToExist ( 'md -dialog-container' ) ;
99
+ expectToExist ( 'mat -dialog-container' ) ;
100
100
} ) ;
101
101
102
102
function waitForDialog ( ) {
103
- return waitForElement ( 'md -dialog-container' ) ;
103
+ return waitForElement ( 'mat -dialog-container' ) ;
104
104
}
105
105
106
106
function clickOnBackrop ( ) {
0 commit comments