summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-04-29 17:57:34 +1000
committerMark Lapierre <mlapierre@gitlab.com>2019-04-29 17:57:34 +1000
commitf15f9970ab73c1474a45734bd3b792a838b2c4d2 (patch)
tree095b8b0e3898d63c96f301a88dc7d6543c3618f2 /qa/qa/specs/features/browser_ui
parentee4ccd31556f8be905e968af448bbb4ecf62dcb6 (diff)
downloadgitlab-ce-f15f9970ab73c1474a45734bd3b792a838b2c4d2.tar.gz
Wait for branches to not be present
When testing if branches are deleted, wait for the branch element to not be present. Do the same for both checks (second and third branches).
Diffstat (limited to 'qa/qa/specs/features/browser_ui')
-rw-r--r--qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
index daeee665c93..ac6458385d9 100644
--- a/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
+++ b/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
@@ -72,10 +72,9 @@ module QA
Page::Project::Branches::Show.perform do |branches_view|
branches_view.delete_branch(third_branch)
+ branches_view.wait_for_branch_not_present(third_branch)
end
- expect(page).not_to have_content(third_branch)
-
Page::Project::Branches::Show.perform(&:delete_merged_branches)
expect(page).to have_content(
@@ -84,8 +83,7 @@ module QA
page.refresh
Page::Project::Branches::Show.perform do |branches_view|
- branches_view.wait_for_texts_not_to_be_visible([commit_message_of_second_branch])
- expect(branches_view).not_to have_branch_title(second_branch)
+ branches_view.wait_for_branch_not_present(second_branch)
end
end
end