@@ -178,63 +178,6 @@ describe('Cypress In Cypress CT', { viewportWidth: 1500, defaultCommandTimeout:
178
178
expect ( ctx . actions . project . initializeActiveProject ) . to . be . called
179
179
} )
180
180
} )
181
-
182
- it ( 'moves away from runner and back, disconnects websocket and reconnects it correctly' , ( ) => {
183
- cy . openProject ( 'cypress-in-cypress' )
184
- cy . startAppServer ( 'component' )
185
-
186
- cy . visitApp ( )
187
- cy . contains ( 'TestComponent.spec' ) . click ( )
188
- cy . waitForSpecToFinish ( )
189
- cy . get ( '[data-model-state="passed"]' ) . should ( 'contain' , 'renders the test component' )
190
- cy . get ( '.passed > .num' ) . should ( 'contain' , 1 )
191
- cy . get ( '.failed > .num' ) . should ( 'contain' , '--' )
192
-
193
- cy . findByTestId ( 'sidebar-link-runs-page' ) . click ( )
194
- cy . get ( '[data-cy="app-header-bar"]' ) . findByText ( 'Runs' ) . should ( 'be.visible' )
195
-
196
- cy . findByTestId ( 'sidebar-link-specs-page' ) . click ( )
197
- cy . get ( '[data-cy="app-header-bar"]' ) . findByText ( 'Specs' ) . should ( 'be.visible' )
198
-
199
- cy . contains ( 'TestComponent.spec' ) . click ( )
200
- cy . waitForSpecToFinish ( )
201
- cy . get ( '[data-model-state="passed"]' ) . should ( 'contain' , 'renders the test component' )
202
-
203
- cy . window ( ) . then ( ( win ) => {
204
- const connected = ( ) => win . ws ?. connected
205
-
206
- win . ws ?. close ( )
207
-
208
- cy . wrap ( {
209
- connected,
210
- } ) . invoke ( 'connected' ) . should ( 'be.false' )
211
-
212
- win . ws ?. connect ( )
213
-
214
- cy . wrap ( {
215
- connected,
216
- } ) . invoke ( 'connected' ) . should ( 'be.true' )
217
- } )
218
-
219
- cy . withCtx ( async ( ctx , o ) => {
220
- await ctx . actions . file . writeFileInProject ( o . path , `
221
- import React from 'react'
222
- import { mount } from 'cypress/react'
223
-
224
- describe('TestComponent', () => {
225
- it('renders the new test component', () => {
226
- mount(<div>Component Test</div>)
227
-
228
- cy.contains('Component Test').should('be.visible')
229
- })
230
- })
231
- ` )
232
- } , { path : getPathForPlatform ( 'src/TestComponent.spec.jsx' ) } )
233
-
234
- cy . get ( '[data-model-state="passed"]' ) . should ( 'contain' , 'renders the new test component' )
235
- cy . get ( '.passed > .num' ) . should ( 'contain' , 1 )
236
- cy . get ( '.failed > .num' ) . should ( 'contain' , '--' )
237
- } )
238
181
} )
239
182
240
183
context ( 'custom config' , ( ) => {
0 commit comments