Skip to content

Commit

Permalink
validations with warnings too (#1543)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5503389)
  • Loading branch information
pondrejk committed Sep 11, 2024
1 parent 15ec213 commit 6f640d3
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 @@ -1046,7 +1046,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 6f640d3

Please sign in to comment.