@@ -102,11 +102,14 @@ describe('VariantManagement', () => {
102
102
cy . mount ( < WithCustomValidation /> ) ;
103
103
cy . contains ( 'Max 12 chars' ) . click ( ) ;
104
104
cy . findByText ( 'Manage' ) . click ( ) ;
105
- cy . get ( '[ui5-dialog]' ) . should ( 'be.visible ' ) ;
105
+ cy . get ( '[ui5-dialog]' ) . should ( 'have.attr' , 'open ') ;
106
106
cy . findByTestId ( '12chars' ) . typeIntoUi5Input ( 'A' ) ;
107
107
cy . findByTestId ( '12chars' ) . should ( 'have.attr' , 'value-state' , 'Error' ) ;
108
108
cy . realPress ( 'Tab' ) ;
109
+ // fallback
110
+ cy . get ( 'body' ) . click ( { force : true } ) ;
109
111
cy . realPress ( 'Escape' ) ;
112
+ cy . get ( '[ui5-dialog]' ) . should ( 'not.exist' ) ;
110
113
cy . findByText ( 'Manage' ) . click ( ) ;
111
114
cy . findByTestId ( '12chars' ) . should ( 'have.attr' , 'value-state' , 'None' ) ;
112
115
cy . findByTestId ( '12chars' ) . typeIntoUi5Input ( 'A' ) ;
@@ -117,7 +120,7 @@ describe('VariantManagement', () => {
117
120
cy . findByTestId ( '12chars' ) . typeIntoUi5Input ( 'A' ) ;
118
121
cy . findByTestId ( '12chars' ) . should ( 'have.attr' , 'value-state' , 'Error' ) ;
119
122
cy . findByText ( 'Save' ) . click ( ) ;
120
- cy . get ( '[ui5-dialog]' ) . should ( 'be.visible ' ) ;
123
+ cy . get ( '[ui5-dialog]' ) . should ( 'have.attr' , 'open ') ;
121
124
cy . findByTestId ( '12chars' ) . typeIntoUi5Input ( '{backspace}' ) ;
122
125
cy . findByTestId ( '12chars' ) . typeIntoUi5Input ( '{backspace}B' ) ;
123
126
cy . findByTestId ( '12chars' ) . should ( 'have.attr' , 'value-state' , 'None' ) ;
@@ -131,7 +134,7 @@ describe('VariantManagement', () => {
131
134
cy . mount ( < WithCustomValidation selectedByIndex = { 0 } /> ) ;
132
135
cy . contains ( 'Only alphanumeric chars in Save View input' ) . click ( ) ;
133
136
cy . findByText ( 'Save As' ) . click ( ) ;
134
- cy . get ( '[ui5-dialog]' ) . should ( 'be.visible ' ) ;
137
+ cy . get ( '[ui5-dialog]' ) . should ( 'have.attr' , 'open ') ;
135
138
cy . findByTestId ( 'alphanumeric' ) . typeIntoUi5Input ( '$' ) ;
136
139
cy . findByTestId ( 'alphanumeric' ) . should ( 'have.attr' , 'value-state' , 'Error' ) ;
137
140
cy . realPress ( 'Tab' ) ;
@@ -148,7 +151,7 @@ describe('VariantManagement', () => {
148
151
cy . findByTestId ( 'alphanumeric' ) . typeIntoUi5Input ( '$' ) ;
149
152
cy . findByTestId ( 'alphanumeric' ) . should ( 'have.attr' , 'value-state' , 'Error' ) ;
150
153
cy . findByText ( 'Save' ) . click ( ) ;
151
- cy . get ( '[ui5-dialog]' ) . should ( 'be.visible ' ) ;
154
+ cy . get ( '[ui5-dialog]' ) . should ( 'have.attr' , 'open ') ;
152
155
cy . focused ( ) . should ( 'have.attr' , 'value-state' , 'Error' ) ;
153
156
cy . findByTestId ( 'alphanumeric' ) . typeIntoUi5Input ( '{selectall}{backspace}A' ) ;
154
157
cy . findByText ( 'Save' ) . click ( ) ;
0 commit comments