Skip to content

Commit 5704a2c

Browse files
pondrejkadamlazik1
authored andcommitted
update hardware model view for UI migration
1 parent 767c9aa commit 5704a2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

airgun/views/hardware_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DeleteHardwareModelDialog(Pf5ConfirmationDialog):
1515
class HardwareModelsView(BaseLoggedInView, SearchableViewMixinPF4):
1616
delete_dialog = DeleteHardwareModelDialog()
1717
title = Text("//h1[normalize-space(.)='Hardware models']")
18-
new = Text("//a[contains(@href, '/models/new')]")
18+
new = Text('//button[@data-ouia-component-id="action-buttons-button"]')
1919
table = PF5OUIATable(
2020
component_id='table',
2121
column_widgets={
@@ -35,7 +35,7 @@ class HardwareModelCreateView(BaseLoggedInView):
3535
hardware_model = TextInput(id='model_hardware_model')
3636
vendor_class = TextInput(id='model_vendor_class')
3737
info = TextInput(id='model_info')
38-
submit = Text('//input[@name="commit"]')
38+
submit = Text('//button[@data-ouia-component-id="model_submit_button"]')
3939

4040
@property
4141
def is_displayed(self):

0 commit comments

Comments
 (0)