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
d7450946
Commit
d7450946
authored
Jun 29, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for compare dropdowns
CHANGELOG
parent
8b9a4963
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
CHANGELOG
CHANGELOG
+2
-0
spec/features/compare_spec.rb
spec/features/compare_spec.rb
+42
-0
No files found.
CHANGELOG
View file @
d7450946
...
...
@@ -19,6 +19,8 @@ v 8.10.0 (unreleased)
- Fix issue, preventing users w/o push access to sort tags !5105 (redetection)
- Add Spring EmojiOne updates.
- Fix viewing notification settings when a project is pending deletion
- Updated compare dropdown menus to use GL dropdown
- Eager load award emoji on notes
- Fix pagination when sorting by columns with lots of ties (like priority)
- Updated project header design
- Exclude email check from the standard health check
...
...
spec/features/compare_spec.rb
0 → 100644
View file @
d7450946
require
"spec_helper"
describe
"Compare"
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
before
do
project
.
team
<<
[
user
,
:master
]
login_as
user
visit
namespace_project_compare_index_path
(
project
.
namespace
,
project
,
from:
"master"
,
to:
"master"
)
end
describe
"branches"
do
it
"should pre-populate fields"
do
expect
(
page
.
find_field
(
"from"
).
value
).
to
eq
(
"master"
)
end
it
"should compare branches"
do
fill_in
"from"
,
with:
"mast"
find
(
"#from"
).
click
click_link
"feature"
expect
(
page
.
find_field
(
"from"
).
value
).
to
eq
(
"feature"
)
click_button
"Compare"
expect
(
page
).
to
have_content
"Commits"
end
end
describe
"tags"
do
it
"should compare tags"
do
fill_in
"from"
,
with:
"v1.0"
find
(
"#from"
).
click
click_link
"v1.0.0"
expect
(
page
.
find_field
(
"from"
).
value
).
to
eq
(
"v1.0.0"
)
click_button
"Compare"
expect
(
page
).
to
have_content
"Commits"
end
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