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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
1f88d9b5
Commit
1f88d9b5
authored
Jun 15, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "Multiselect Blob" feature specs
These are well covered by the new Jasmine tests, and faster!
parent
da154283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
143 deletions
+0
-143
features/project/source/multiselect_blob.feature
features/project/source/multiselect_blob.feature
+0
-85
features/steps/project/source/multiselect_blob.rb
features/steps/project/source/multiselect_blob.rb
+0
-58
No files found.
features/project/source/multiselect_blob.feature
deleted
100644 → 0
View file @
da154283
Feature
:
Project Source Multiselect Blob
Background
:
Given
I sign in as a user
And
I own project
"Shop"
And
I visit
".gitignore"
file in repo
@javascript
Scenario
:
I
click line 1 in file
When
I click line 1 in file
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
@javascript
Scenario
:
I
shift-click line 1 in file
When
I shift-click line 1 in file
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
@javascript
Scenario
:
I
click line 1 then click line 2 in file
When
I click line 1 in file
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
Then
I click line 2 in file
Then
I should see
"L2"
as URI fragment
And
I should see line 2 highlighted
@javascript
Scenario
:
I
click various line numbers to test multiselect
Then
I click line 1 in file
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
Then
I shift-click line 2 in file
Then
I should see
"L1-2"
as URI fragment
And
I should see lines 1-2 highlighted
Then
I shift-click line 3 in file
Then
I should see
"L1-3"
as URI fragment
And
I should see lines 1-3 highlighted
Then
I click line 3 in file
Then
I should see
"L3"
as URI fragment
And
I should see line 3 highlighted
Then
I shift-click line 1 in file
Then
I should see
"L1-3"
as URI fragment
And
I should see lines 1-3 highlighted
Then
I shift-click line 5 in file
Then
I should see
"L1-5"
as URI fragment
And
I should see lines 1-5 highlighted
Then
I shift-click line 4 in file
Then
I should see
"L1-4"
as URI fragment
And
I should see lines 1-4 highlighted
Then
I click line 5 in file
Then
I should see
"L5"
as URI fragment
And
I should see line 5 highlighted
Then
I shift-click line 3 in file
Then
I should see
"L3-5"
as URI fragment
And
I should see lines 3-5 highlighted
Then
I shift-click line 1 in file
Then
I should see
"L1-3"
as URI fragment
And
I should see lines 1-3 highlighted
Then
I shift-click line 1 in file
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
@javascript
Scenario
:
I
multiselect lines 1-5 and then go back and forward in history
When
I click line 1 in file
And
I shift-click line 3 in file
And
I shift-click line 2 in file
And
I shift-click line 5 in file
Then
I should see
"L1-5"
as URI fragment
And
I should see lines 1-5 highlighted
Then
I go back in history
Then
I should see
"L1-2"
as URI fragment
And
I should see lines 1-2 highlighted
Then
I go back in history
Then
I should see
"L1-3"
as URI fragment
And
I should see lines 1-3 highlighted
Then
I go back in history
Then
I should see
"L1"
as URI fragment
And
I should see line 1 highlighted
Then
I go forward in history
And
I go forward in history
And
I go forward in history
Then
I should see
"L1-5"
as URI fragment
And
I should see lines 1-5 highlighted
features/steps/project/source/multiselect_blob.rb
deleted
100644 → 0
View file @
da154283
class
Spinach::Features::ProjectSourceMultiselectBlob
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedPaths
class
<<
self
def
click_line_steps
(
*
line_numbers
)
line_numbers
.
each
do
|
line_number
|
step
"I click line
#{
line_number
}
in file"
do
find
(
"#L
#{
line_number
}
"
).
click
end
step
"I shift-click line
#{
line_number
}
in file"
do
script
=
"$('#L
#{
line_number
}
').trigger($.Event('click', { shiftKey: true }));"
execute_script
(
script
)
end
end
end
def
check_state_steps
(
*
ranges
)
ranges
.
each
do
|
range
|
fragment
=
range
.
kind_of?
(
Array
)
?
"L
#{
range
.
first
}
-
#{
range
.
last
}
"
:
"L
#{
range
}
"
pluralization
=
range
.
kind_of?
(
Array
)
?
"s"
:
""
step
"I should see
\"
#{
fragment
}
\"
as URI fragment"
do
expect
(
URI
.
parse
(
current_url
).
fragment
).
to
eq
fragment
end
step
"I should see line
#{
pluralization
}
#{
fragment
[
1
..-
1
]
}
highlighted"
do
ids
=
Array
(
range
).
map
{
|
n
|
"LC
#{
n
}
"
}
extra
=
false
highlighted
=
page
.
all
(
"#tree-content-holder .highlight .line.hll"
)
highlighted
.
each
do
|
element
|
extra
||=
ids
.
delete
(
element
[
:id
]).
nil?
end
expect
(
extra
).
to
be_false
and
ids
.
should
be_empty
end
end
end
end
click_line_steps
*
Array
(
1
..
5
)
check_state_steps
*
Array
(
1
..
5
),
Array
(
1
..
2
),
Array
(
1
..
3
),
Array
(
1
..
4
),
Array
(
1
..
5
),
Array
(
3
..
5
)
step
'I go back in history'
do
go_back
end
step
'I go forward in history'
do
go_forward
end
step
'I click on ".gitignore" file in repo'
do
click_link
".gitignore"
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