@@ -82,6 +82,24 @@ def button_without_group(appliance, generic_definition):
8282 button .delete_if_exists ()
8383
8484
85+ @pytest .fixture (scope = "module" )
86+ def two_buttons_without_group (appliance , generic_definition ):
87+ with appliance .context .use (ViaUI ):
88+ button1 = generic_definition .add_button (
89+ name = fauxfactory .gen_alphanumeric (start = "btn1" , separator = "-" ),
90+ description = fauxfactory .gen_alphanumeric (),
91+ request = fauxfactory .gen_alphanumeric ()
92+ )
93+ button2 = generic_definition .add_button (
94+ name = fauxfactory .gen_alphanumeric (start = "btn2" , separator = "-" ),
95+ description = fauxfactory .gen_alphanumeric (),
96+ request = fauxfactory .gen_alphanumeric ()
97+ )
98+ yield button1 , button2
99+ button1 .delete_if_exists ()
100+ button2 .delete_if_exists ()
101+
102+
85103@pytest .mark .meta (automates = [1744478 , 1753289 ])
86104def test_custom_group_on_generic_class_crud (appliance , generic_definition ):
87105 """ Test custom button group crud operation on generic class definition
@@ -332,9 +350,8 @@ def test_generic_object_button_delete_flash(button_without_group):
332350 )
333351
334352
335- @pytest .mark .manual
336- @pytest .mark .meta (blockers = [BZ (1753281 ), BZ (1753388 )], coverage = [1753281 , 1753388 ])
337- def test_generic_object_button_delete_multiple ():
353+ @pytest .mark .meta (blockers = [BZ (1753281 ), BZ (1753388 )], automates = [1753281 , 1753388 ])
354+ def test_generic_object_button_delete_multiple (appliance , two_buttons_without_group ):
338355 """
339356 Bugzilla:
340357 1753281
@@ -355,7 +372,10 @@ def test_generic_object_button_delete_multiple():
355372 3.
356373 4. The second button should be deleted, not both, no 404 error
357374 """
358- pass
375+ view = navigate_to (two_buttons_without_group [1 ], "Details" )
376+ view .configuration .item_select ('Remove this Custom Button from Inventory' , handle_alert = False )
377+ view = navigate_to (two_buttons_without_group [0 ], "Details" )
378+ assert view .is_displayed
359379
360380
361381@pytest .mark .manual
0 commit comments