keyboard_shortcut_spec.rb 556 Bytes
Newer Older
1 2 3
require 'rails_helper'

describe 'Issue Boards shortcut', feature: true, js: true do
Phil Hughes's avatar
Phil Hughes committed
4 5
  include WaitForVueResource

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  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')
Phil Hughes's avatar
Phil Hughes committed
21 22

    wait_for_vue_resource
23 24
  end
end