BigW Consortium Gitlab

Commit 8a2ecebe by Douglas Barbosa Alexandre Committed by Fatih Acet

Fix feature spec to create new issue on issue boards

parent a3edd5f1
...@@ -6,6 +6,7 @@ describe 'Issue Boards new issue', feature: true, js: true do ...@@ -6,6 +6,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let!(:list) { create(:list, board: board, position: 0) }
let(:user) { create(:user) } let(:user) { create(:user) }
context 'authorized user' do context 'authorized user' do
...@@ -17,7 +18,7 @@ describe 'Issue Boards new issue', feature: true, js: true do ...@@ -17,7 +18,7 @@ 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_vue_resource wait_for_vue_resource
expect(page).to have_selector('.board', count: 3) expect(page).to have_selector('.board', count: 2)
end end
it 'displays new issue button' do it 'displays new issue button' do
...@@ -25,7 +26,7 @@ describe 'Issue Boards new issue', feature: true, js: true do ...@@ -25,7 +26,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
end end
it 'does not display new issue button in done list' do it 'does not display new issue button in done list' do
page.within('.board:nth-child(3)') do page.within('.board:nth-child(2)') 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