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
0fbd948b
Commit
0fbd948b
authored
May 31, 2018
by
Winnie Hellmann
Committed by
Clement Ho
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add link to hack for styling Capybara HTML dumps
parent
feab9afd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+4
-0
No files found.
doc/development/testing_guide/best_practices.md
View file @
0fbd948b
...
@@ -120,6 +120,10 @@ Add `screenshot_and_save_page` in a `:js` spec to screenshot what Capybara
...
@@ -120,6 +120,10 @@ Add `screenshot_and_save_page` in a `:js` spec to screenshot what Capybara
Add
`screenshot_and_open_image`
in a
`:js`
spec to screenshot what Capybara
Add
`screenshot_and_open_image`
in a
`:js`
spec to screenshot what Capybara
"sees", and automatically open the image.
"sees", and automatically open the image.
The HTML dumps created by this are missing CSS.
This results in them looking very different from the actual application.
There is a
[
small hack
](
https://gitlab.com/gitlab-org/gitlab-ce/snippets/1718469
)
to add CSS which makes debugging easier.
### Fast unit tests
### Fast unit tests
Some classes are well-isolated from Rails and you should be able to test them
Some classes are well-isolated from Rails and you should be able to test them
...
...
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