Commit cf5396d4 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Fixed up specs

parent 00b835ba
...@@ -142,13 +142,13 @@ describe 'Issue Boards add issue modal', :feature, :js do ...@@ -142,13 +142,13 @@ describe 'Issue Boards add issue modal', :feature, :js do
end end
end end
it 'un-selects all issues' do it 'deselects all issues' do
page.within('.add-issues-modal') do page.within('.add-issues-modal') do
click_button 'Select all' click_button 'Select all'
expect(page).to have_selector('.is-active', count: 2) expect(page).to have_selector('.is-active', count: 2)
click_button 'Un-select all' click_button 'Deselect all'
expect(page).not_to have_selector('.is-active') expect(page).not_to have_selector('.is-active')
end end
......
...@@ -84,24 +84,6 @@ describe 'Issue Boards', feature: true, js: true do ...@@ -84,24 +84,6 @@ describe 'Issue Boards', feature: true, js: true do
end end
end end
it 'does not show remove issue button when issue is closed' do
page.within(first('.board')) do
first('.card').click
end
page.within('.issue-boards-sidebar') do
click_button 'Remove from board'
end
page.within(find('.board:nth-child(2)')) do
first('.card').click
end
page.within('.issue-boards-sidebar') do
expect(page).not_to have_button 'Remove from board'
end
end
context 'assignee' do context 'assignee' do
it 'updates the issues assignee' do it 'updates the issues assignee' do
page.within(first('.board')) do page.within(first('.board')) do
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
describe('Store', () => { describe('Store', () => {
beforeEach(() => { beforeEach(() => {
Vue.http.interceptors.push(boardsMockInterceptor); Vue.http.interceptors.push(boardsMockInterceptor);
gl.boardService = new BoardService('/test/issue-boards/board', '1'); gl.boardService = new BoardService('/test/issue-boards/board', '', '1');
gl.issueBoards.BoardsStore.create(); gl.issueBoards.BoardsStore.create();
Cookies.set('issue_board_welcome_hidden', 'false', { Cookies.set('issue_board_welcome_hidden', 'false', {
......
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