2016-09-07 11:13:38 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe 'Issue Boards shortcut', feature: true, js: true do
|
|
|
|
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
|
|
|
|
2017-06-21 19:44:10 -04:00
|
|
|
sign_in(create(:admin))
|
2016-09-07 11:13:38 -04:00
|
|
|
|
2017-07-06 12:20:50 -04:00
|
|
|
visit project_path(project)
|
2016-09-07 11:13:38 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'takes user to issue board index' do
|
2017-03-30 12:37:37 -04:00
|
|
|
find('body').native.send_keys('gb')
|
2016-09-07 11:13:38 -04:00
|
|
|
expect(page).to have_selector('.boards-list')
|
2016-09-07 12:14:41 -04:00
|
|
|
|
2017-05-17 14:25:13 -04:00
|
|
|
wait_for_requests
|
2016-09-07 11:13:38 -04:00
|
|
|
end
|
|
|
|
end
|