Skip to content
Snippets Groups Projects
Commit cf5396d4 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet
Browse files

Fixed up specs

parent 00b835ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -142,13 +142,13 @@ describe 'Issue Boards add issue modal', :feature, :js do
end
end
 
it 'un-selects all issues' do
it 'deselects all issues' do
page.within('.add-issues-modal') do
click_button 'Select all'
 
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')
end
Loading
Loading
Loading
Loading
@@ -84,24 +84,6 @@ describe 'Issue Boards', feature: true, js: true do
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
it 'updates the issues assignee' do
page.within(first('.board')) do
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@
describe('Store', () => {
beforeEach(() => {
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();
 
Cookies.set('issue_board_welcome_hidden', 'false', {
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