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
b321b40a
Commit
b321b40a
authored
Jun 04, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Specs
parent
632524a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
spec/frontend/security_configuration/components/redesigned_app_spec.js
.../security_configuration/components/redesigned_app_spec.js
+12
-12
No files found.
spec/frontend/security_configuration/components/redesigned_app_spec.js
View file @
b321b40a
...
...
@@ -82,7 +82,7 @@ describe('redesigned App component', () => {
});
it
(
'
renders right amount of tabs with correct title
'
,
()
=>
{
expect
(
findTabs
()
.
length
).
toEqual
(
2
);
expect
(
findTabs
()
).
toHaveLength
(
2
);
});
it
(
'
renders security-testing tab
'
,
()
=>
{
...
...
@@ -95,7 +95,7 @@ describe('redesigned App component', () => {
it
(
'
renders right amount of feature cards for given props with correct props
'
,
()
=>
{
const
cards
=
findFeatureCards
();
expect
(
cards
.
length
).
toEqual
(
2
);
expect
(
cards
).
toHaveLength
(
2
);
expect
(
cards
.
at
(
0
).
props
()).
toEqual
({
feature
:
securityFeaturesMock
[
0
]
});
expect
(
cards
.
at
(
1
).
props
()).
toEqual
({
feature
:
complianceFeaturesMock
[
0
]
});
});
...
...
@@ -115,23 +115,23 @@ describe('redesigned App component', () => {
});
it
(
'
should show latest pipeline info on the security tab with correct link when latestPipelinePath is defined
'
,
()
=>
{
expect
(
findByTestId
(
'
latest-pipeline-info-security
'
).
exists
()).
toBe
(
true
);
expect
(
findByTestId
(
'
latest-pipeline-info-security
'
).
text
()).
toMatchInterpolatedText
(
const
latestPipelineInfoSecurity
=
findByTestId
(
'
latest-pipeline-info-security
'
);
expect
(
latestPipelineInfoSecurity
.
exists
()).
toBe
(
true
);
expect
(
latestPipelineInfoSecurity
.
text
()).
toMatchInterpolatedText
(
i18n
.
securityTestingDescription
,
);
expect
(
findByTestId
(
'
latest-pipeline-info-security
'
).
find
(
'
a
'
).
attributes
(
'
href
'
)).
toBe
(
'
test/path
'
,
);
expect
(
latestPipelineInfoSecurity
.
find
(
'
a
'
).
attributes
(
'
href
'
)).
toBe
(
'
test/path
'
);
});
it
(
'
should show latest pipeline info on the compliance tab with correct link when latestPipelinePath is defined
'
,
()
=>
{
expect
(
findByTestId
(
'
latest-pipeline-info-compliance
'
).
exists
()).
toBe
(
true
);
expect
(
findByTestId
(
'
latest-pipeline-info-compliance
'
).
text
()).
toMatchInterpolatedText
(
const
latestPipelineInfoCompliance
=
findByTestId
(
'
latest-pipeline-info-compliance
'
);
expect
(
latestPipelineInfoCompliance
.
exists
()).
toBe
(
true
);
expect
(
latestPipelineInfoCompliance
.
text
()).
toMatchInterpolatedText
(
i18n
.
securityTestingDescription
,
);
expect
(
findByTestId
(
'
latest-pipeline-info-compliance
'
).
find
(
'
a
'
).
attributes
(
'
href
'
)).
toBe
(
'
test/path
'
,
);
expect
(
latestPipelineInfoCompliance
.
find
(
'
a
'
).
attributes
(
'
href
'
)).
toBe
(
'
test/path
'
);
});
});
});
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