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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
820 B
Ruby
Raw Permalink 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
2023-03-04 22:38:38 +05:30
RSpec.describe 'Issue Sidebar on Mobile', feature_category: :team_planning do
2017-09-10 17:25:29 +05:30
include MobileHelpers
let(:project) { create(:project, :public, :repository) }
let(:merge_request) { create(:merge_request, source_project: project) }
let(:issue) { create(:issue, project: project) }
2022-08-27 11:52:29 +05:30
let!(:user) { create(:user) }
2017-09-10 17:25:29 +05:30
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