@@ -280,7 +280,7 @@ describe('Analysis view', () => {
280280 // There should be three tasks in the drop down list when loaded
281281 // Plus 2 entries for Select and Deselect all
282282 cy
283- . get ( '.d-flex > .v-autocomplete ' )
283+ . get ( '[data-cy=time-series-task-select] ' )
284284 . click ( )
285285 . get ( '.v-list-item' )
286286 . its ( 'length' )
@@ -312,7 +312,7 @@ describe('Analysis view', () => {
312312 it ( 'Should select tasks from the autocomplete drop down list' , ( ) => {
313313 // Add waiting task and check only two cycles visible on both graphs
314314 cy
315- . get ( '.d-flex > .v-autocomplete ' )
315+ . get ( '[data-cy=time-series-task-select] ' )
316316 . click ( )
317317 . get ( '.v-list-item' )
318318 . contains ( 'waiting' )
@@ -322,7 +322,7 @@ describe('Analysis view', () => {
322322 . should ( 'have.length' , 4 )
323323 // Add eventually_succeeded task and check three cycles visible
324324 cy
325- . get ( '.d-flex > .v-autocomplete ' )
325+ . get ( '[data-cy=time-series-task-select] ' )
326326 . click ( )
327327 . get ( '.v-list-item' )
328328 . contains ( 'eventually' )
@@ -332,7 +332,7 @@ describe('Analysis view', () => {
332332 . should ( 'have.length' , 6 )
333333 // Remove selected tasks and check no cycle points are visible
334334 cy
335- . get ( '.d-flex > .v-autocomplete ' )
335+ . get ( '[data-cy=time-series-task-select] ' )
336336 . click ( )
337337 . get ( '.v-list-item' )
338338 . contains ( 'waiting' )
@@ -348,7 +348,7 @@ describe('Analysis view', () => {
348348 it ( 'Should search for and add/remove tasks' , ( ) => {
349349 // Before searching, the options to add/remove all tasks should exist
350350 cy
351- . get ( '.d-flex > .v-autocomplete ' )
351+ . get ( '[data-cy=time-series-task-select] ' )
352352 . click ( )
353353 . get ( '.v-list-item' )
354354 . contains ( 'succeeded' )
@@ -360,26 +360,26 @@ describe('Analysis view', () => {
360360 . should ( 'exist' )
361361 // Select all tasks that contain succeeded
362362 cy
363- . get ( '.d-flex > .v-autocomplete ' )
363+ . get ( '[data-cy=time-series-task-select] ' )
364364 . type ( 'succeeded' )
365365 . get ( '.v-card-actions' )
366366 . contains ( 'Select all' )
367367 . click ( )
368368 // Check the correct tasks have been added
369369 cy
370- . get ( '.d-flex > .v-autocomplete ' )
370+ . get ( '[data-cy=time-series-task-select] ' )
371371 . find ( '.v-chip' )
372372 . its ( 'length' )
373373 . should ( 'eq' , 2 )
374- . get ( '.d-flex > .v-autocomplete ' )
374+ . get ( '[data-cy=time-series-task-select] ' )
375375 . find ( '.v-chip' )
376376 . contains ( / ^ s u c c e e d e d $ / )
377- . get ( '.d-flex > .v-autocomplete ' )
377+ . get ( '[data-cy=time-series-task-select] ' )
378378 . find ( '.v-chip' )
379379 . contains ( 'eventually_succeeded' )
380380 // Remove all tasks that contain eventually
381381 cy
382- . get ( '.d-flex > .v-autocomplete ' )
382+ . get ( '[data-cy=time-series-task-select] ' )
383383 . find ( 'input' )
384384 . clear ( )
385385 . type ( 'eventually' )
@@ -388,10 +388,10 @@ describe('Analysis view', () => {
388388 . click ( )
389389 // Check only succeeded task is selected
390390 cy
391- . get ( '.d-flex > .v-autocomplete ' )
391+ . get ( '[data-cy=time-series-task-select] ' )
392392 . find ( '.v-chip' )
393393 . contains ( / ^ s u c c e e d e d $ / )
394- . get ( '.d-flex > .v-autocomplete ' )
394+ . get ( '[data-cy=time-series-task-select] ' )
395395 . find ( '.v-chip' )
396396 . contains ( 'eventually_succeeded' )
397397 . should ( 'not.exist' )
@@ -400,7 +400,7 @@ describe('Analysis view', () => {
400400 it ( 'Should show origin, when selected' , ( ) => {
401401 // Add waiting task and check y-axis doesn't start at origin
402402 cy
403- . get ( '.d-flex > .v-autocomplete ' )
403+ . get ( '[data-cy=time-series-task-select] ' )
404404 . click ( )
405405 . get ( '.v-list-item' )
406406 . contains ( 'waiting' )
0 commit comments