Skip to content

Commit

Permalink
Remove unnecessary escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Dec 13, 2023
1 parent d6824e1 commit ad083a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/setup_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
end
end

When(/^I (deselect|select) "([^\"]*)" as a product$/) do |select, product|
When(/^I (deselect|select) "([^"]*)" as a product$/) do |select, product|
# click on the checkbox to select the product
xpath = "//span[contains(text(), '#{product}')]/ancestor::div[contains(@class, 'product-details-wrapper')]/div/input[@type='checkbox']"
raise ScriptError, "xpath: #{xpath} not found" unless find(:xpath, xpath).set(select == 'select')
Expand Down

0 comments on commit ad083a6

Please sign in to comment.