2016-09-07 11:13:38 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe 'Issue Boards shortcut', feature: true, js: true do
|
2016-09-07 12:14:41 -04:00
|
|
|
include WaitForVueResource
|
|
|
|
|
2016-09-07 11:13:38 -04:00
|
|
|
let(:project) { create(:empty_project) }
|
|
|
|
|
|
|
|
before do
|
2016-10-10 22:29:20 -04:00
|
|
|
create(:board, project: project)
|
2016-09-07 11:13:38 -04:00
|
|
|
|
|
|
|
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')
|
2016-09-07 12:14:41 -04:00
|
|
|
|
|
|
|
wait_for_vue_resource
|
2016-09-07 11:13:38 -04:00
|
|
|
end
|
|
|
|
end
|