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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 22:00:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 22:00:14 +0300
commit05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch)
tree11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /spec/features/jira_connect/branches_spec.rb
parentec73467c23693d0db63a797d10194da9e72a74af (diff)
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'spec/features/jira_connect/branches_spec.rb')
-rw-r--r--spec/features/jira_connect/branches_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/jira_connect/branches_spec.rb b/spec/features/jira_connect/branches_spec.rb
index 489d3743a2a..8cf07f2ade2 100644
--- a/spec/features/jira_connect/branches_spec.rb
+++ b/spec/features/jira_connect/branches_spec.rb
@@ -3,6 +3,8 @@
require 'spec_helper'
RSpec.describe 'Create GitLab branches from Jira', :js, feature_category: :integrations do
+ include ListboxHelpers
+
let_it_be(:alice) { create(:user, name: 'Alice') }
let_it_be(:bob) { create(:user, name: 'Bob') }
@@ -42,7 +44,7 @@ RSpec.describe 'Create GitLab branches from Jira', :js, feature_category: :integ
expect(page).not_to have_text('Alice / bar')
- click_on 'Alice / foo'
+ find('span', text: 'Alice / foo', match: :first).click
end
expect(page).to have_field('Branch name', with: 'ACME-123-my-issue-title')
@@ -57,11 +59,11 @@ RSpec.describe 'Create GitLab branches from Jira', :js, feature_category: :integ
# Switch to project2
- click_on 'Alice / foo'
+ find('span', text: 'Alice / foo', match: :first).click
within_dropdown do
fill_in 'Search', with: ''
- click_on 'Alice / bar'
+ find('span', text: 'Alice / bar', match: :first).click
end
click_on 'master'
@@ -70,9 +72,7 @@ RSpec.describe 'Create GitLab branches from Jira', :js, feature_category: :integ
fill_in 'Search', with: source_branch
wait_for_requests
- within '[role="listbox"]' do
- find('li', text: source_branch).click
- end
+ select_listbox_item(source_branch)
fill_in 'Branch name', with: new_branch
click_on 'Create branch'