Commit 125c36dd authored by Tomislav Nikic's avatar Tomislav Nikic

Using the new check method

This method checks if the applying text is there.
If not, it checks for the applied badge.
parent 8b88d0aa
...@@ -365,7 +365,7 @@ module QA ...@@ -365,7 +365,7 @@ module QA
all_elements(:add_suggestion_batch_button, minimum: 1).first.click all_elements(:add_suggestion_batch_button, minimum: 1).first.click
end end
def has_suggestions_applied?(count) def has_suggestions_applied?(count = 1)
wait_until(reload: false) do wait_until(reload: false) do
has_no_element?(:applying_badge) has_no_element?(:applying_badge)
end end
......
...@@ -48,7 +48,7 @@ module QA ...@@ -48,7 +48,7 @@ module QA
merge_request.click_diffs_tab merge_request.click_diffs_tab
merge_request.apply_suggestion_with_message(commit_message) merge_request.apply_suggestion_with_message(commit_message)
expect(merge_request).to have_css('.badge-success', text: 'Applied') expect(merge_request).to have_suggestions_applied
merge_request.click_commits_tab merge_request.click_commits_tab
......
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