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
77f5dfd3
Commit
77f5dfd3
authored
Mar 16, 2021
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review feedback: Remove getByText regex
parent
e0e316fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/spec/frontend_integration/vulnerabilities/vulnerabilities_init_integration_spec.js
.../vulnerabilities/vulnerabilities_init_integration_spec.js
+4
-3
No files found.
ee/spec/frontend_integration/vulnerabilities/vulnerabilities_init_integration_spec.js
View file @
77f5dfd3
...
@@ -44,10 +44,11 @@ describe('Vulnerability Report', () => {
...
@@ -44,10 +44,11 @@ describe('Vulnerability Report', () => {
it
(
"
displays the vulnerability's severity
"
,
()
=>
{
it
(
"
displays the vulnerability's severity
"
,
()
=>
{
const
severitySection
=
screen
.
getByTestId
(
'
severity
'
);
const
severitySection
=
screen
.
getByTestId
(
'
severity
'
);
const
severityValue
=
within
(
severitySection
).
getByTestId
(
'
value
'
);
expect
(
expect
(
severityValue
.
textContent
.
toLowerCase
()).
toContain
(
within
(
severitySection
).
getByText
(
new
RegExp
(
mockVulnerability
.
severity
,
'
i
'
)
),
mockVulnerability
.
severity
.
toLowerCase
(
),
)
.
toBeInstanceOf
(
HTMLElement
)
;
);
});
});
it
(
"
displays a heading containing the vulnerability's title
"
,
()
=>
{
it
(
"
displays a heading containing the vulnerability's title
"
,
()
=>
{
...
...
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