@@ -513,20 +513,30 @@ class roles(Tab):
513
513
class variables (Tab ):
514
514
TAB_NAME = 'Variables'
515
515
ROOT = './/div[@class="ansible-host-detail"]'
516
+
517
+ actions = Button (locator = '//tbody/tr/td[7]//button' )
518
+ delete = Button (locator = '//button[@role="menuitem"]' )
519
+ confirm = Button (locator = '//button[@data-ouia-component-id="btn-modal-confirm"]' )
516
520
table = Table (
517
521
locator = './/table[contains(@class, "pf-c-table")]' ,
518
522
column_widgets = {
519
523
'Name' : Text ('.//a' ),
520
524
'Ansible role' : Text ('./span' ),
521
525
'Type' : Text ('./span' ),
522
526
# the next field can also be a form group
523
- 'Value' : Text ( './span ' ),
527
+ 'Value' : TextInput ( locator = '//textarea[contains(@class, "pf-c-form")] ' ),
524
528
'Source attribute' : Text ('./span' ),
525
529
# The next 2 buttons are hidden by default, but appear in this order
526
- 5 : Button (locator = './/button[@aria-label="Cancel editing override button"]' ),
527
- 6 : Button (locator = './/button[@aria-label="Submit override button"]' ),
530
+ 6 : Button (locator = './/button[@aria-label="Cancel editing override button"]' ),
531
+ 7 : Button (locator = './/button[@aria-label="Submit override button"]' ),
528
532
# Clicking this button hides it, and displays the previous 2
529
- 7 : Button (locator = './/button[@aria-label="Edit override button"]' ),
533
+ 5 : Button (locator = './/button[@aria-label="Edit override button"]' ),
534
+ },
535
+ )
536
+ table1 = Table (
537
+ locator = './/table[contains(@class, "pf-c-table")]' ,
538
+ column_widgets = {
539
+ 5 : Button (locator = './/button[@aria-label="Submit editing override button"]' ),
530
540
},
531
541
)
532
542
pagination = PF4Pagination ()
0 commit comments