summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-20 11:40:55 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-20 11:40:55 -0500
commit7b6fe0e25933243c2dd2826a592f4239c862dc9d (patch)
treea47508da8baeeb57426b41936a6feec08efb0e21 /spec/features/issues
parente784958cb5396d745e43797988bacf9c9a27e9f4 (diff)
parent364354bce442e2058491e549bbacfbea0c007c0d (diff)
downloadgitlab-ce-7b6fe0e25933243c2dd2826a592f4239c862dc9d.tar.gz
Merge remote-tracking branch 'origin/master' into label-dropdown-fix
# Conflicts: # app/views/shared/issuable/_sidebar.html.haml
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/move_spec.rb10
-rw-r--r--spec/features/issues/update_issues_spec.rb2
2 files changed, 5 insertions, 7 deletions
diff --git a/spec/features/issues/move_spec.rb b/spec/features/issues/move_spec.rb
index 6fda0c31866..84c8e20ebaa 100644
--- a/spec/features/issues/move_spec.rb
+++ b/spec/features/issues/move_spec.rb
@@ -42,11 +42,9 @@ feature 'issue move to another project' do
expect(current_url).to include project_path(new_project)
- page.within('.issue') do
- expect(page).to have_content("Text with #{cross_reference}!1")
- expect(page).to have_content("Moved from #{cross_reference}#1")
- expect(page).to have_content(issue.title)
- end
+ expect(page).to have_content("Text with #{cross_reference}!1")
+ expect(page).to have_content("Moved from #{cross_reference}#1")
+ expect(page).to have_content(issue.title)
end
context 'projects user does not have permission to move issue to exist' do
@@ -74,7 +72,7 @@ feature 'issue move to another project' do
def edit_issue(issue)
visit issue_path(issue)
- page.within('.issuable-header') { click_link 'Edit' }
+ page.within('.issuable-actions') { first(:link, 'Edit').click }
end
def issue_path(issue)
diff --git a/spec/features/issues/update_issues_spec.rb b/spec/features/issues/update_issues_spec.rb
index 3eb903a93fe..b03dd0f666d 100644
--- a/spec/features/issues/update_issues_spec.rb
+++ b/spec/features/issues/update_issues_spec.rb
@@ -48,7 +48,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
click_update_issues_button
page.within('.issue .controls') do
- expect(find('.author_link')["data-original-title"]).to have_content(user.name)
+ expect(find('.author_link')["title"]).to have_content(user.name)
end
end