debian-mirror-gitlab/spec/features/issuables/user_sees_sidebar_spec.rb

33 lines
779 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2019-12-04 20:38:33 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
describe 'Issue Sidebar on Mobile' do
include MobileHelpers
let(:project) { create(:project, :public, :repository) }
let(:merge_request) { create(:merge_request, source_project: project) }
let(:issue) { create(:issue, project: project) }
let!(:user) { create(:user)}
before do
sign_in(user)
end
2018-03-17 18:26:18 +05:30
context 'mobile sidebar on merge requests', :js do
2017-09-10 17:25:29 +05:30
before do
visit project_merge_request_path(merge_request.project, merge_request)
end
it_behaves_like "issue sidebar stays collapsed on mobile"
end
2018-03-17 18:26:18 +05:30
context 'mobile sidebar on issues', :js do
2017-09-10 17:25:29 +05:30
before do
visit project_issue_path(project, issue)
end
it_behaves_like "issue sidebar stays collapsed on mobile"
end
end