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
Boxiang Sun
gitlab-ce
Commits
40c7ba01
Commit
40c7ba01
authored
Sep 03, 2016
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated spec with next click targets
parent
ffdccaa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
spec/features/expand_collapse_diffs_spec.rb
spec/features/expand_collapse_diffs_spec.rb
+33
-7
No files found.
spec/features/expand_collapse_diffs_spec.rb
View file @
40c7ba01
...
...
@@ -68,7 +68,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
context
'expanding a diff for a renamed file'
do
before
do
large_diff_renamed
.
find
(
'.
nothing-here-block
'
).
click
large_diff_renamed
.
find
(
'.
click-to-expand
'
).
click
wait_for_ajax
end
...
...
@@ -87,7 +87,10 @@ feature 'Expand and collapse diffs', js: true, feature: true do
context
'expanding a large diff'
do
before
do
click_link
(
'large_diff.md'
)
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `large_diff.md` title
all
(
'.file-title'
)[
1
].
click
wait_for_ajax
end
...
...
@@ -128,7 +131,10 @@ feature 'Expand and collapse diffs', js: true, feature: true do
context
'expanding the diff'
do
before
do
click_link
(
'large_diff.md'
)
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `large_diff.md` title
all
(
'.file-title'
)[
1
].
click
wait_for_ajax
end
...
...
@@ -146,7 +152,12 @@ feature 'Expand and collapse diffs', js: true, feature: true do
end
context
'collapsing an expanded diff'
do
before
{
click_link
(
'small_diff.md'
)
}
before
do
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `small_diff.md` title
all
(
'.file-title'
)[
3
].
click
end
it
'hides the diff content'
do
expect
(
small_diff
).
not_to
have_selector
(
'.code'
)
...
...
@@ -154,7 +165,12 @@ feature 'Expand and collapse diffs', js: true, feature: true do
end
context
're-expanding the same diff'
do
before
{
click_link
(
'small_diff.md'
)
}
before
do
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `small_diff.md` title
all
(
'.file-title'
)[
3
].
click
end
it
'shows the diff content'
do
expect
(
small_diff
).
to
have_selector
(
'.code'
)
...
...
@@ -224,7 +240,12 @@ feature 'Expand and collapse diffs', js: true, feature: true do
end
context
'collapsing an expanded diff'
do
before
{
click_link
(
'small_diff.md'
)
}
before
do
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `small_diff.md` title
all
(
'.file-title'
)[
3
].
click
end
it
'hides the diff content'
do
expect
(
small_diff
).
not_to
have_selector
(
'.code'
)
...
...
@@ -232,7 +253,12 @@ feature 'Expand and collapse diffs', js: true, feature: true do
end
context
're-expanding the same diff'
do
before
{
click_link
(
'small_diff.md'
)
}
before
do
# Wait for diffs
find
(
'.file-title'
,
match: :first
)
# Click `small_diff.md` title
all
(
'.file-title'
)[
3
].
click
end
it
'shows the diff content'
do
expect
(
small_diff
).
to
have_selector
(
'.code'
)
...
...
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