2016-09-29 09:46:39 +05:30
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
describe 'Issue Boards shortcut', js: true do
|
|
|
|
let(:project) { create(:project) }
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
before do
|
2016-11-03 12:29:30 +05:30
|
|
|
create(:board, project: project)
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
sign_in(create(:admin))
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
visit project_path(project)
|
2016-09-29 09:46:39 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
it 'takes user to issue board index' do
|
2017-08-17 22:00:37 +05:30
|
|
|
find('body').native.send_keys('gb')
|
2016-09-29 09:46:39 +05:30
|
|
|
expect(page).to have_selector('.boards-list')
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
wait_for_requests
|
2016-09-29 09:46:39 +05:30
|
|
|
end
|
|
|
|
end
|