@@ -351,10 +351,7 @@ def test_filtering_on_device_popup(self):
351351 sleep (0.5 )
352352 table_entries = self .find_elements (By .CSS_SELECTOR , ".map-detail tbody tr" )
353353 self .assertEqual (len (table_entries ), 1 )
354- self .assertIn (
355- "Test-Device2" ,
356- table_entries [0 ].text ,
357- )
354+ self .assertIn (d2 .name ,table_entries [0 ].text )
358355 health_ok .click ()
359356 self .wait_for_invisibility (
360357 By .CSS_SELECTOR , ".map-detail .ow-loading-spinner"
@@ -372,7 +369,7 @@ def test_filtering_on_device_popup(self):
372369 sleep (0.5 )
373370 table_entries = self .find_elements (By .CSS_SELECTOR , ".map-detail tbody tr" )
374371 self .assertEqual (len (table_entries ), 1 )
375- self .assertIn ("Test-Device1" , table_entries [0 ].text )
372+ self .assertIn (d1 . name , table_entries [0 ].text )
376373
377374 with self .subTest ("Test filtering to get no results" ):
378375 input_field .clear ()
@@ -423,23 +420,23 @@ def test_floorplan_overlay(self):
423420 self .assertIsNotNone (canvases )
424421
425422 with self .subTest ("Test floorplan navigation" ):
426- up_arrow = self .find_element (
427- By .CSS_SELECTOR , "#floorplan-navigation .up -arrow"
423+ right_arrow = self .find_element (
424+ By .CSS_SELECTOR , "#floorplan-navigation .right -arrow"
428425 )
429- up_arrow .click ()
426+ right_arrow .click ()
430427 floor_heading = self .find_element (By .CSS_SELECTOR , "#floorplan-heading" )
431- self .assertIn ("2nd Floor " , floor_heading .text )
428+ self .assertIn ("2nd floor " , floor_heading .text . lower () )
432429 canvases = self .find_elements (
433430 By .CSS_SELECTOR , "#floor-content-2 canvas" , timeout = 5
434431 )
435432 self .assertIsNotNone (canvases )
436433
437- down_arrow = self .find_element (
438- By .CSS_SELECTOR , "#floorplan-navigation .down -arrow"
434+ left_arrow = self .find_element (
435+ By .CSS_SELECTOR , "#floorplan-navigation .left -arrow"
439436 )
440- down_arrow .click ()
437+ left_arrow .click ()
441438 floor_heading = self .find_element (By .CSS_SELECTOR , "#floorplan-heading" )
442- self .assertIn ("1st Floor " , floor_heading .text )
439+ self .assertIn ("1st floor " , floor_heading .text . lower () )
443440 canvases = self .find_elements (
444441 By .CSS_SELECTOR , "#floor-content-1 canvas" , timeout = 5
445442 )
@@ -450,7 +447,7 @@ def test_floorplan_overlay(self):
450447 )
451448 second_floor_btn .click ()
452449 floor_heading = self .find_element (By .CSS_SELECTOR , "#floorplan-heading" )
453- self .assertIn ("2nd Floor " , floor_heading .text )
450+ self .assertIn ("2nd floor " , floor_heading .text . lower () )
454451 canvases = self .find_elements (
455452 By .CSS_SELECTOR , "#floor-content-2 canvas" , timeout = 5
456453 )
0 commit comments