Skip to content

Commit

Permalink
locator added in host view (SatelliteQE#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 authored Jul 24, 2024
1 parent 5d234e7 commit 36cb87d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion airgun/views/computeresource.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class compute_profiles(SatTab):
table = SatTable(
'.//table',
column_widgets={
'Compute profile': Text('./a'),
'Compute profile': Text('.//a'),
},
)

Expand Down Expand Up @@ -432,6 +432,9 @@ class network_interfaces(RemovableWidgetsItemsListView):
ROOT = "//fieldset[@id='network_interfaces']"
ITEM_WIDGET_CLASS = ComputeResourceVMwareProfileNetworkItem

nic_type = FilteredDropdown(id='select2-chosen-9')
network = FilteredDropdown(id='select2-chosen-10')

@View.nested
class storage(RemovableWidgetsItemsListView):
ROOT = "//div[contains(concat(' ', @class, ' '), ' vmware-storage-container ')]"
Expand All @@ -440,6 +443,9 @@ class storage(RemovableWidgetsItemsListView):
add_item_button = Text(
"//button[contains(concat(' ', @class, ' '), ' btn-add-controller ')]"
)
data_store = FilteredDropdown(
"//div[@class='select2-container form-control select2-allowclear']/a/span[1]"
)

@property
def is_displayed(self):
Expand Down
3 changes: 3 additions & 0 deletions airgun/views/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ class host(SatTab):
locator=".//div[label[@for='compute_resource_id']]//button"
)
deploy = FilteredDropdown(id='host_compute_resource')
inherit_compute_profile_option = ToggleButton(
locator=".//div[label[@for='compute_profile_id']]//button"
)
compute_profile = FilteredDropdown(id='s2id_host_compute_profile_id')
lce = FilteredDropdown(id='host_lifecycle_environment')
content_view = FilteredDropdown(id='host_content_view')
Expand Down

0 comments on commit 36cb87d

Please sign in to comment.