2016-09-07 11:13:38 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-06-29 00:13:10 -04:00
|
|
|
describe 'Issue Boards shortcut', js: true do
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project) }
|
2016-09-07 11:13:38 -04:00
|
|
|
|
|
|
|
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
|