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 tests for filter groups #1419

Merged
merged 10 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [8.0.1] - (unreleased)

### Added
- Add tests for filter groups [#1419](https://github.com/greenbone/gsa/pull/1419)
- Add tests for severitylevelsgroup, radio button and task trend [#1413](https://github.com/greenbone/gsa/pull/1413)
- Allow to show error details [#1403](https://github.com/greenbone/gsa/pull/1403)
- Add test for solution type group [#1402](https://github.com/greenbone/gsa/pull/1402)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ApplyOverridesGroup tests should render 1`] = `
.c3 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}

.c5 {
margin-left: -5px;
}

.c5 > * {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
}

.c5 > * {
margin-left: 5px;
}

.c4 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
}

.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
padding-bottom: 10px;
}

.c1 {
display: inline-block;
max-width: 100%;
font-weight: bold;
text-align: right;
padding-left: 10px;
padding-right: 10px;
width: 16.66666667%;
margin-left: 0;
}

.c2 {
width: 83.33333333%;
padding-left: 10px;
padding-right: 10px;
}

.c6 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-weight: normal;
cursor: pointer;
}

.c8 {
font-family: inherit;
font-size: inherit;
padding: 0;
margin: 0;
margin-left: 10px;
line-height: normal;
width: auto;
height: auto;
}

.c9 {
opacity: 1;
}

.c7 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}

<div
class="c0"
>
<label
class="c1"
data-testid="formgroup-title"
>
Apply Overrides
</label>
<div
class="c2 c3"
data-testid="formgroup-content"
size="10"
>
<div
class="c3"
>
<div
class="c4 c3"
>
<div
class="c5 c3"
margin="5px"
>
<label
class="c6"
>
<div
class="c4 c3"
>
<div
class="c5 c3"
margin="5px"
>
<input
class="c7 c8"
data-testid="radio-input"
name="applyOverrides"
type="radio"
value="1"
/>
<span
class="c9"
data-testid="radio-title"
>
Yes
</span>
</div>
</div>
</label>
<label
class="c6"
>
<div
class="c4 c3"
>
<div
class="c5 c3"
margin="5px"
>
<input
class="c7 c8"
data-testid="radio-input"
name="applyOverrides"
type="radio"
value="0"
/>
<span
class="c9"
data-testid="radio-title"
>
No
</span>
</div>
</div>
</label>
</div>
</div>
</div>
</div>
</div>
`;
Loading