Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
projects.thm.de
GitLab
Commits
40c7ba01
Unverified
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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 @@ def file_container(filename)
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