mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Fixed tests
This commit is contained in:
committed by
Jacob Schatz
parent
6c949b2bf1
commit
ce2e37d446
@@ -2,7 +2,7 @@ module SharedIssuable
|
||||
include Spinach::DSL
|
||||
|
||||
def edit_issuable
|
||||
find(:css, '.issuable-edit').click
|
||||
find('.issuable-edit', visible: true).click
|
||||
end
|
||||
|
||||
step 'project "Community" has "Community issue" open issue' do
|
||||
|
||||
@@ -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') { find('.issuable-edit').click }
|
||||
end
|
||||
|
||||
def issue_path(issue)
|
||||
|
||||
Reference in New Issue
Block a user