Commit fd9d8302 authored by Phil Hughes's avatar Phil Hughes

fixed new_issue_spec

[ci skip]
parent 285049b9
...@@ -15,15 +15,15 @@ describe 'Issue Boards new issue', feature: true, js: true do ...@@ -15,15 +15,15 @@ describe 'Issue Boards new issue', feature: true, js: true do
visit namespace_project_board_path(project.namespace, project, board) visit namespace_project_board_path(project.namespace, project, board)
wait_for_requests wait_for_requests
expect(page).to have_selector('.board', count: 2) expect(page).to have_selector('.board', count: 3)
end end
it 'displays new issue button' do it 'displays new issue button' do
expect(page).to have_selector('.board-issue-count-holder .btn', count: 1) expect(first('.board')).to have_selector('.board-issue-count-holder .btn', count: 1)
end end
it 'does not display new issue button in closed list' do it 'does not display new issue button in closed list' do
page.within('.board:nth-child(2)') do page.within('.board:nth-child(3)') do
expect(page).not_to have_selector('.board-issue-count-holder .btn') expect(page).not_to have_selector('.board-issue-count-holder .btn')
end end
end end
......
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