Commit 825d3b0d authored by Marcia Ramos's avatar Marcia Ramos

Merge branch '323119-document-test-specific-stylesheets-in-fe-testing-guidelines' into 'master'

Resolve "Document test-specific stylesheets in FE testing guidelines"

See merge request gitlab-org/gitlab!56912
parents b57c1b57 25859d71
...@@ -104,6 +104,15 @@ describe('Component', () => { ...@@ -104,6 +104,15 @@ describe('Component', () => {
Remember that the performance of each test depends on the environment. Remember that the performance of each test depends on the environment.
### Test-specific stylesheets
To help facilitate RSpec integration tests we have two test-specific stylesheets. These can be used to do things like disable animations to improve test speed, or to make elements visible when they need to be targeted by Capybara click events:
- `app/assets/stylesheets/disable_animations.scss`
- `app/assets/stylesheets/test_environment.scss`
Because the test environment should match the production environment as much as possible, use these minimally and only add to them when necessary.
## What and how to test ## What and how to test
Before jumping into more gritty details about Jest-specific workflows like mocks and spies, we should briefly cover what to test with Jest. Before jumping into more gritty details about Jest-specific workflows like mocks and spies, we should briefly cover what to test with Jest.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment