Add documentation for "Hide whitespace changes" button
This commit is contained in:
parent
a1a9a1cf8d
commit
5d5df26ab1
5 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ Locate the section for your GitLab remote in the `.git/config` file. It looks li
|
|||
|
||||
Now add the line `fetch = +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*` to this section.
|
||||
|
||||
It should looks like this:
|
||||
It should look like this:
|
||||
|
||||
```
|
||||
[remote "origin"]
|
||||
|
@ -43,7 +43,7 @@ $ git checkout origin/merge-requests/1
|
|||
|
||||
![MR diff](merge_requests/merge_request_diff.png)
|
||||
|
||||
It you add `w=1` option to URL, you can see diff without whitespace changes.
|
||||
If you click to "Hide whitespace changes" button, you can see diff without whitespace changes.
|
||||
|
||||
![MR diff without whitespace](merge_requests/merge_request_diff_without_whitespace.png)
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 108 KiB |
Binary file not shown.
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 162 KiB |
Binary file not shown.
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 119 KiB |
|
@ -13,7 +13,7 @@ feature 'Toggle Whitespace Changes', js: true, feature: true do
|
|||
expect(page).to have_content "Hide whitespace changes"
|
||||
end
|
||||
|
||||
describe 'clicking hide whitespace changes button' do
|
||||
describe 'clicking "Hide whitespace changes" button' do
|
||||
it 'should hide whitespace changes' do
|
||||
find('a', text: "Hide whitespace changes").click
|
||||
expect(page).to have_content "Show whitespace changes"
|
||||
|
|
Loading…
Reference in a new issue