Commit graph

15 commits

Author SHA1 Message Date
Winnie Hellmann
e3465a5dde Add jQuery matchers to Jest 2019-04-01 18:55:57 +00:00
Winnie Hellmann
514ee63826 Move some tests from Karma to Jest 2019-03-23 17:53:46 +01:00
Brandon Labuschagne
193362482d Fix failing tests
A number of the karma tests looked for the .fa-spinner class or the
icon element used for the font awesome spinner class.

These instances have been refactored to now look for the .spinner
class instead.
2019-03-18 14:09:07 +02:00
Lukas Eipert
26ab92d3f3
Improve performance of rendering large reports
Instead of rendering all report items in 4 big lists, we make use of
vue-virtual-scroll-list and render only few dozens at once. This
improves the performance in several metrics:

- Initial load time
- Memory Pressure
- CPU Load
- DOM node count

In an example with around 11k reported security vulnerabilities:

- Initial load time: 27s -> 4.1s
- Memory Pressure: ~750 MB -> ~270 MB
- CPU Load (time spent on executing JS/Rendering): 22s -> 2.5s
- DOM node count: 430k -> 7k up to 30k while scrolling
2018-11-06 11:39:11 +01:00
Mike Greiling
7a3e605350
Resolve eslint violations 2018-10-17 11:18:17 -05:00
Mike Greiling
f666026d71
Prettify all spec files 2018-10-17 11:18:17 -05:00
Johann Hubert Sonntagbauer
6f5723a169 enable jasmine/new-line-before-expect 2018-10-17 06:57:29 +02:00
Johann Hubert Sonntagbauer
2a76e04091 enable jasmine/new-line-between-declarations 2018-10-09 19:01:49 +02:00
Filipa Lacerda
bcdc6f3119
Moves report components to reports folder 2018-08-07 16:06:38 +01:00
Filipa Lacerda
0f0e70bc13
Reset error state in success mutation to handle error-success state 2018-08-07 14:05:53 +01:00
Filipa Lacerda
d8fc401229 Show resolved failures 2018-08-07 14:05:13 +01:00
Filipa Lacerda
94981308a0
Adds action spec to cover 204 2018-08-03 10:45:43 +01:00
Filipa Lacerda
15511ed14f Changes after review:
- Cleans up CSS to use common classes
- Removes getters to use mapState instead
- Makes the first request even when tab is not visible
- Show loading state in 204
2018-08-02 17:59:25 +01:00
Filipa Lacerda
bfeb7c2c3f Adds frontend support to render test reports on theMR widget
Creates an app to render grouped test reports in the MR widget
Ports CSS from EE into CE
Creates a reusable code component
Adds getters and utils to the existing reports store
2018-08-02 17:59:22 +01:00
Filipa Lacerda - 🌴🌴OOO back on July 30th🌴🌴
2d56c8fdd7 Adds Vuex store to handle the data for tests reports in MR widget 2018-07-23 16:54:48 +00:00