Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add listpage and detailspage tests #3024

Merged
merged 17 commits into from
Jun 29, 2021

Conversation

saberlynx
Copy link
Contributor

@saberlynx saberlynx commented Jun 24, 2021

What:

Add tests from master branch and port all changes from #2660

Why:

How:

Checklist:

  • Tests
  • CHANGELOG Entry
  • Labels for ports to other branches

@codecov
Copy link

codecov bot commented Jun 24, 2021

Codecov Report

Merging #3024 (5ffef5c) into gsa-21.04 (f2fc017) will increase coverage by 2.84%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##           gsa-21.04    #3024      +/-   ##
=============================================
+ Coverage      54.28%   57.12%   +2.84%     
=============================================
  Files           1076     1076              
  Lines          26245    26246       +1     
  Branches        7490     7490              
=============================================
+ Hits           14246    14992     +746     
+ Misses         10882    10181     -701     
+ Partials        1117     1073      -44     
Impacted Files Coverage Δ
gsa/src/web/entity/box.js 100.00% <ø> (ø)
gsa/src/web/pages/credentials/detailspage.js 93.10% <100.00%> (+65.51%) ⬆️
gsa/src/web/pages/credentials/listpage.js 100.00% <100.00%> (+50.00%) ⬆️
gsa/src/web/pages/notes/detailspage.js 92.85% <100.00%> (+64.28%) ⬆️
gsa/src/web/pages/notes/listpage.js 100.00% <100.00%> (+63.63%) ⬆️
gsa/src/web/pages/nvts/detailspage.js 94.00% <100.00%> (+72.00%) ⬆️
gsa/src/web/pages/nvts/listpage.js 100.00% <100.00%> (+50.00%) ⬆️
gsa/src/web/pages/overrides/detailspage.js 92.85% <100.00%> (+64.28%) ⬆️
gsa/src/web/pages/overrides/listpage.js 100.00% <100.00%> (+63.63%) ⬆️
gsa/src/web/pages/results/detailspage.js 82.43% <100.00%> (+70.10%) ⬆️
... and 84 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2fc017...5ffef5c. Read the comment docs.

@saberlynx saberlynx force-pushed the backport-tests branch 4 times, most recently from 76d1c3c to 7a4fb3a Compare June 29, 2021 06:48
@saberlynx saberlynx marked this pull request as ready for review June 29, 2021 06:48
@saberlynx saberlynx requested a review from a team as a code owner June 29, 2021 06:48
@saberlynx saberlynx enabled auto-merge June 29, 2021 06:56
@@ -17,22 +17,29 @@
*/
import React from 'react';

import Date, {setLocale} from 'gmp/models/date';
import date, {setLocale} from 'gmp/models/date';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was upper case on purpose, because it's a component model, just like we have Result, Target etc in upper case as well. Putting this into lower case might give the impression, this is some kind of transformation function.

@saberlynx saberlynx merged commit 3483c5c into greenbone:gsa-21.04 Jun 29, 2021
saberlynx added a commit that referenced this pull request Jun 29, 2021
Add listpage and detailspage tests (backport #3024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants