Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
c5dd3df4
Commit
c5dd3df4
authored
Jun 16, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary spec file
parent
ab29db9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
102 deletions
+0
-102
spec/features/milestones/milestones_spec.rb
spec/features/milestones/milestones_spec.rb
+0
-102
No files found.
spec/features/milestones/milestones_spec.rb
deleted
100644 → 0
View file @
ab29db9e
# require 'rails_helper'
# describe 'Milestone draggable', feature: true, js: true do
# include DragTo
# let(:milestone) { create(:milestone, project: project, title: 8.14) }
# let(:project) { create(:empty_project, :public) }
# let(:user) { create(:user) }
# context 'issues' do
# let(:issue) { page.find_by_id('issues-list-unassigned').find('li') }
# let(:issue_target) { page.find_by_id('issues-list-ongoing') }
# it 'does not allow guest to drag issue' do
# create_and_drag_issue
# expect(issue_target).not_to have_selector('.issuable-row')
# end
# it 'does not allow authorized user to drag issue' do
# login_as(user)
# create_and_drag_issue
# expect(issue_target).not_to have_selector('.issuable-row')
# end
# it 'allows author to drag issue' do
# login_as(user)
# create_and_drag_issue(author: user)
# expect(issue_target).to have_selector('.issuable-row')
# end
# it 'allows admin to drag issue' do
# login_as(:admin)
# create_and_drag_issue
# expect(issue_target).to have_selector('.issuable-row')
# end
# end
# context 'merge requests' do
# let(:merge_request) { page.find_by_id('merge_requests-list-unassigned').find('li') }
# let(:merge_request_target) { page.find_by_id('merge_requests-list-ongoing') }
# it 'does not allow guest to drag merge request' do
# create_and_drag_merge_request
# expect(merge_request_target).not_to have_selector('.issuable-row')
# end
# it 'does not allow authorized user to drag merge request' do
# login_as(user)
# create_and_drag_merge_request
# expect(merge_request_target).not_to have_selector('.issuable-row')
# end
# it 'allows author to drag merge request' do
# login_as(user)
# create_and_drag_merge_request(author: user)
# expect(merge_request_target).to have_selector('.issuable-row')
# end
# it 'allows admin to drag merge request' do
# login_as(:admin)
# create_and_drag_merge_request
# expect(merge_request_target).to have_selector('.issuable-row')
# end
# end
# def create_and_drag_issue(params = {})
# create(:issue, params.merge(title: 'Foo', project: project, milestone: milestone))
# visit namespace_project_milestone_path(project.namespace, project, milestone)
# scroll_into_view('.milestone-content')
# drag_to(selector: '.issues-sortable-list', list_to_index: 1)
# wait_for_requests
# end
# def create_and_drag_merge_request(params = {})
# create(:merge_request, params.merge(title: 'Foo', source_project: project, target_project: project, milestone: milestone))
# visit namespace_project_milestone_path(project.namespace, project, milestone)
# page.find("a[href='#tab-merge-requests']").click
# wait_for_requests
# scroll_into_view('.milestone-content')
# drag_to(selector: '.merge_requests-sortable-list', list_to_index: 1)
# wait_for_requests
# end
# def scroll_into_view(selector)
# page.evaluate_script("document.querySelector('#{selector}').scrollIntoView();")
# end
# end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment