fixed new_issue_spec
[ci skip]
This commit is contained in:
parent
285049b91b
commit
fd9d8302d9
1 changed files with 3 additions and 3 deletions
|
@ -15,15 +15,15 @@ describe 'Issue Boards new issue', feature: true, js: true do
|
|||
visit namespace_project_board_path(project.namespace, project, board)
|
||||
wait_for_requests
|
||||
|
||||
expect(page).to have_selector('.board', count: 2)
|
||||
expect(page).to have_selector('.board', count: 3)
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
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')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue