Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/branches_spec.rb')
-rw-r--r--spec/features/projects/branches_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects/branches_spec.rb b/spec/features/projects/branches_spec.rb
index 50df7bb7ca5..79e9ca7998e 100644
--- a/spec/features/projects/branches_spec.rb
+++ b/spec/features/projects/branches_spec.rb
@@ -206,7 +206,7 @@ RSpec.describe 'Branches', feature_category: :groups_and_projects do
page.refresh
search_for_branch('fix')
-
+ clear_search_input
expect(page).not_to have_content('fix')
expect(all('.all-branches', wait: false).last).to have_selector('li', count: 0)
end
@@ -299,7 +299,7 @@ RSpec.describe 'Branches', feature_category: :groups_and_projects do
it 'shows pipeline status when available' do
page.within first('.all-branches li') do
- expect(page).to have_css 'a.ci-status-icon-success'
+ expect(page).to have_css 'a.gl-badge .ci-status-icon-success'
end
end
@@ -376,6 +376,10 @@ RSpec.describe 'Branches', feature_category: :groups_and_projects do
branch_search.native.send_keys(:enter)
end
+ def clear_search_input
+ find('input[data-testid="branch-search"]').set('')
+ end
+
def delete_branch_and_confirm
wait_for_requests
find('[data-testid="branch-more-actions"] .gl-new-dropdown-toggle', match: :first).click