Fix a spec that was assuming to be on the wrong page
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
60797a42b4
commit
a2ba403e27
1 changed files with 4 additions and 6 deletions
|
@ -15,16 +15,14 @@ feature 'Create Branch/Merge Request Dropdown on issue page', js: true do
|
|||
visit project_issue_path(project, issue)
|
||||
|
||||
select_dropdown_option('create-mr')
|
||||
|
||||
expect(page).to have_content('WIP: Resolve "Cherry-Coloured Funk"')
|
||||
expect(current_path).to eq(project_merge_request_path(project, MergeRequest.first))
|
||||
|
||||
wait_for_requests
|
||||
visit project_issue_path(project, issue)
|
||||
|
||||
expect(page).to have_content("created branch 1-cherry-coloured-funk")
|
||||
expect(page).to have_content("mentioned in merge request !1")
|
||||
|
||||
visit project_merge_request_path(project, MergeRequest.first)
|
||||
|
||||
expect(page).to have_content('WIP: Resolve "Cherry-Coloured Funk"')
|
||||
expect(current_path).to eq(project_merge_request_path(project, MergeRequest.first))
|
||||
end
|
||||
|
||||
it 'allows creating a branch from the issue page' do
|
||||
|
|
Loading…
Reference in a new issue