Commit 1db5bef9 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'dj-check-single-line-number' into 'master'

Check for a single line number instead of arbitrary text

See merge request gitlab-org/gitlab!41002
parents 360f0abd 87bddf37
...@@ -131,7 +131,7 @@ module QA ...@@ -131,7 +131,7 @@ module QA
def add_comment_to_diff(text) def add_comment_to_diff(text)
wait_until(sleep_interval: 5) do wait_until(sleep_interval: 5) do
has_text?("No newline at end of file") has_css?('a[data-linenumber="1"]')
end end
all_elements(:new_diff_line, minimum: 1).first.hover all_elements(:new_diff_line, minimum: 1).first.hover
click_element(:diff_comment) click_element(:diff_comment)
......
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