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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e238de2a
Commit
e238de2a
authored
Aug 20, 2020
by
Thomas Randolph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update existing tests for file-by-file nav
parent
13e2f375
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
spec/features/merge_request/user_views_auto_expanding_diff_spec.rb
...ures/merge_request/user_views_auto_expanding_diff_spec.rb
+2
-1
spec/features/merge_request/user_views_diffs_file_by_file_spec.rb
...tures/merge_request/user_views_diffs_file_by_file_spec.rb
+1
-1
No files found.
spec/features/merge_request/user_views_auto_expanding_diff_spec.rb
View file @
e238de2a
...
...
@@ -27,9 +27,10 @@ RSpec.describe 'User views diffs file-by-file', :js do
page
.
within
(
'#diffs'
)
do
expect
(
page
).
not_to
have_content
(
'This diff is collapsed'
)
click_button
'Next'
find
(
'.page-link.next-page-item'
).
click
expect
(
page
).
not_to
have_content
(
'This diff is collapsed'
)
expect
(
page
).
to
have_selector
(
'.diff-file .file-title'
,
text:
'large_diff_renamed.md'
)
end
end
end
spec/features/merge_request/user_views_diffs_file_by_file_spec.rb
View file @
e238de2a
...
...
@@ -25,7 +25,7 @@ RSpec.describe 'User views diffs file-by-file', :js do
expect
(
page
).
to
have_selector
(
'.file-holder'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.diff-file .file-title'
,
text:
'.DS_Store'
)
click_button
'Next'
find
(
'.page-link.next-page-item'
).
click
expect
(
page
).
to
have_selector
(
'.file-holder'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.diff-file .file-title'
,
text:
'.gitignore'
)
...
...
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