Skip to content
Snippets Groups Projects
Verified Commit a2ba403e authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Fix a spec that was assuming to be on the wrong page


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 60797a42
No related branches found
No related tags found
No related merge requests found
Loading
@@ -15,16 +15,14 @@ feature 'Create Branch/Merge Request Dropdown on issue page', js: true do
Loading
@@ -15,16 +15,14 @@ feature 'Create Branch/Merge Request Dropdown on issue page', js: true do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
   
select_dropdown_option('create-mr') 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("created branch 1-cherry-coloured-funk")
expect(page).to have_content("mentioned in merge request !1") 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 end
   
it 'allows creating a branch from the issue page' do it 'allows creating a branch from the issue page' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment