gitlab-org--gitlab-foss/spec/features/boards/keyboard_shortcut_spec.rb
Phil Hughes 07d39ac053 Fixed tests
Added wait for vue helper
2016-09-15 18:20:36 -04:00

24 lines
556 B
Ruby

require 'rails_helper'
describe 'Issue Boards shortcut', feature: true, js: true do
include WaitForVueResource
let(:project) { create(:empty_project) }
before do
project.create_board
project.board.lists.create(list_type: :backlog)
project.board.lists.create(list_type: :done)
login_as :admin
visit namespace_project_path(project.namespace, project)
end
it 'takes user to issue board index' do
find('body').native.send_keys('gl')
expect(page).to have_selector('.boards-list')
wait_for_vue_resource
end
end