Commit 02926eea authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-reload-to-check-branches-deleted' into 'master'

[QA] Reload page to check if branch is deleted

See merge request gitlab-org/gitlab-ce!28583
parents 6418ffac a3f88356
......@@ -28,9 +28,11 @@ module QA
finished_loading?
end
def has_no_branch?(branch_name)
within_element(:all_branches) do
has_no_element?(:branch_name, text: branch_name, wait: Support::Waiter::DEFAULT_MAX_WAIT_TIME)
def has_no_branch?(branch_name, reload: false)
wait(reload: reload) do
within_element(:all_branches) do
has_no_element?(:branch_name, text: branch_name)
end
end
end
......
......@@ -84,7 +84,7 @@ module QA
page.refresh
Page::Project::Branches::Show.perform do |branches_view|
expect(branches_view).to have_no_branch(second_branch)
expect(branches_view).to have_no_branch(second_branch, reload: true)
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