Commit 452043cb authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ss/issuabled-update-issues-spec' into 'master'

Fix spec for issuables in update_issues_spec

See merge request gitlab-org/gitlab!37016
parents c48f84f1 21003484
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
:img-css-classes="imgCssClasses" :img-css-classes="imgCssClasses"
:img-src="avatarUrl(assignee)" :img-src="avatarUrl(assignee)"
:img-size="iconSize" :img-size="iconSize"
class="js-no-trigger" class="js-no-trigger author-link"
tooltip-placement="bottom" tooltip-placement="bottom"
data-qa-selector="assignee_link" data-qa-selector="assignee_link"
> >
......
...@@ -8,7 +8,6 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do ...@@ -8,7 +8,6 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do
let!(:user) { create(:user)} let!(:user) { create(:user)}
before do before do
stub_feature_flags(vue_issuables_list: false)
project.add_maintainer(user) project.add_maintainer(user)
sign_in(user) sign_in(user)
end end
...@@ -52,7 +51,7 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do ...@@ -52,7 +51,7 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do
click_update_issues_button click_update_issues_button
page.within('.issue .controls') do page.within('.issue .controls') do
expect(find('.author-link')["title"]).to have_content(user.name) expect(find('.author-link')['href']).to have_content(user.website_url)
end end
end end
...@@ -83,13 +82,15 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do ...@@ -83,13 +82,15 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do
find('.dropdown-menu-milestone a', text: milestone.title).click find('.dropdown-menu-milestone a', text: milestone.title).click
click_update_issues_button click_update_issues_button
expect(find('.issue')).to have_content milestone.title expect(page.find('.issue')).to have_content milestone.title
end end
it 'sets to no milestone' do it 'sets to no milestone' do
create_with_milestone create_with_milestone
visit project_issues_path(project) visit project_issues_path(project)
wait_for_requests
expect(first('.issue')).to have_content milestone.title expect(first('.issue')).to have_content milestone.title
click_button 'Edit issues' click_button 'Edit issues'
......
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