Skip to content

Commit 57fa12a

Browse files
authored
Merge pull request 3scale-qe#929 from mdujava/rewrite_gsub
Select operation by text as id does not use the string value anymore
2 parents 2312167 + 4fe0c23 commit 57fa12a

File tree

1 file changed

+5
-1
lines changed
  • testsuite/ui/views/admin/product/integration

1 file changed

+5
-1
lines changed

testsuite/ui/views/admin/product/integration/policies.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ def add_rewriting_command(self, regex, replace, operation: Literal["sub", "gsub"
9292

9393
self.regex_input.fill(regex)
9494
self.replace_input.fill(replace)
95-
self.operation_select.select_by_value(operation)
95+
96+
operation_text = "Substitute the first match of the regex applied."
97+
if operation == "gsub":
98+
operation_text = "Substitute all the matches of the regex applied."
99+
self.operation_select.select_by_text(operation_text)
96100

97101
self.update_policy_btn.click()
98102

0 commit comments

Comments
 (0)