Skip to content

Commit

Permalink
validations with warnings too (SatelliteQE#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk authored Sep 11, 2024
1 parent faf1dc6 commit 5503389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airgun/views/sync_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SyncTemplatesView(BaseLoggedInView):
breadcrumb = BreadCrumb()
title = Text("//h2[contains(., 'Import or Export Templates')]")
sync_type = RadioGroup("//div[label[contains(., 'Action type')]]")
submit = Text("//button[@type='submit']")
submit = Text(".//button[contains(.,'Submit')]")

template = ConditionalSwitchableView(reference='sync_type')

Expand Down
3 changes: 2 additions & 1 deletion airgun/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ class ValidationErrors(Widget):

ERROR_ELEMENTS = ".//*[contains(@class,'has-error') and not(contains(@style,'display:none'))]"
ERROR_MESSAGES = (
".//*[(contains(@class, 'alert base in fade alert-danger')"
".//*[(contains(@class, 'alert base in fade alert-danger') "
"or contains(@class, 'alert base in fade alert-warning') "
"or contains(@class,'error-msg') "
"or contains(@class,'error-msg-block')"
"or contains(@class,'error-message') "
Expand Down

0 comments on commit 5503389

Please sign in to comment.