Commit 3f76ee1f authored by Mark Lapierre's avatar Mark Lapierre

Merge branch '346464-fix-wrong-number-of-argument' into 'master'

Fix wrong number of argument

See merge request gitlab-org/gitlab!75262
parents 55a15031 db941c32
......@@ -74,8 +74,11 @@ module QA
end
def within_file_by_number(element, file_number)
method = file_number ? 'within_element_by_index' : 'within_element'
send(method, element, file_number) { yield }
if file_number
within_element_by_index(element, file_number - 1) { yield }
else
within_element(element) { yield }
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment