@@ -144,7 +144,12 @@ describe('Server details', () => {
144
144
////////////////////////////////////////////////////////////////////
145
145
cy . log ( 'Dead server' ) ;
146
146
////////////////////////////////////////////////////////////////////
147
- cy . task ( 'tarantool' , { code : `_G.cluster:server('dummy-2').process:kill('KILL')` } ) ;
147
+ cy . task ( 'tarantool' , {
148
+ code : `
149
+ _G.cluster:server('dummy-2').process:kill('KILL')
150
+ _G.cluster:server('dummy-2').process = nil
151
+ `
152
+ } ) ;
148
153
149
154
cy . get ( '.ServerLabelsHighlightingArea' ) . contains ( 'dummy-2' )
150
155
. closest ( 'li' ) . should ( 'contain' , 'Server status is "dead"' ) ;
@@ -154,15 +159,15 @@ describe('Server details', () => {
154
159
155
160
cy . get ( 'div' ) . contains ( 'Mordor' ) . should ( 'exist' ) ;
156
161
cy . get ( '.meta-test__ZoneListItem' ) . contains ( 'Mordor' ) . click ( ) ;
157
- cy . get ( 'span:contains(NetboxCallError: "localhost:13302": Connection refused )' ) . click ( ) ;
162
+ cy . get ( 'span:contains(NetboxCallError: "localhost:13302":)' ) . click ( ) ;
158
163
159
164
cy . get ( '.meta-test__ServerDetailsModal button:contains(Zone Mordor)' ) . click ( ) ;
160
165
cy . get ( 'button:contains(Add new zone)' ) . click ( ) ;
161
166
cy . get ( '.ZoneAddModal input[name="zone_name"]' )
162
167
. should ( 'be.focused' )
163
168
. type ( 'Moscow' ) ;
164
169
cy . get ( '.meta-test__ZoneAddSubmitBtn' ) . click ( ) ;
165
- cy . get ( '.ZoneAddModal_error' ) . find ( 'span:contains("localhost:13302": Connection refused )' ) ;
170
+ cy . get ( '.ZoneAddModal_error' ) . find ( 'span:contains("localhost:13302":)' ) ;
166
171
cy . get ( 'h2:contains(Add name of zone)' ) . next ( ) . click ( ) ;
167
172
cy . get ( '.ZoneAddModal' ) . should ( 'not.exist' ) ;
168
173
@@ -187,7 +192,7 @@ describe('Server details', () => {
187
192
. click ( ) ;
188
193
cy . get ( '.meta-test__ReplicasetServerListItem__dropdown div' )
189
194
. contains ( 'Enable server' ) . click ( ) ;
190
- cy . get ( 'span:contains(NetboxCallError: "localhost:13302": Connection refused )' )
195
+ cy . get ( 'span:contains(NetboxCallError: "localhost:13302":)' )
191
196
. click ( ) ;
192
197
cy . get ( '.meta-test__ServerDetailsModal span:contains(Disabled)' ) . should ( 'exist' ) ;
193
198
cy . get ( '.meta-test__ServerDetailsModal button' ) . contains ( 'Close' ) . click ( ) ;
0 commit comments