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
956554b2
Commit
956554b2
authored
Jul 02, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update snapshotting of unit test
* Refer to correct element
parent
6079c1d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 deletions
+54
-3
ee/spec/frontend/vue_shared/license_compliance/components/__snapshots__/add_license_form_spec.js.snap
...ce/components/__snapshots__/add_license_form_spec.js.snap
+51
-1
ee/spec/frontend/vue_shared/license_compliance/components/add_license_form_spec.js
...ed/license_compliance/components/add_license_form_spec.js
+3
-2
No files found.
ee/spec/frontend/vue_shared/license_compliance/components/__snapshots__/add_license_form_spec.js.snap
View file @
956554b2
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AddLicenseForm template does not show dropdown descriptions, if licenseComplianceDeniesMr feature flag is disabled 1`] = `undefined`;
exports[`AddLicenseForm template does not show dropdown descriptions, if licenseComplianceDeniesMr feature flag is disabled 1`] = `
<div
class="form-check"
>
<input
aria-describedby="js-approved-license-radio"
class="form-check-input"
data-qa-selector="approved_license_radio"
id="js-approved-license-radio"
type="radio"
value="approved"
/>
<label
class="form-check-label pt-1"
for="js-approved-license-radio"
>
Allow
</label>
<!---->
</div>
`;
exports[`AddLicenseForm template does not show dropdown descriptions, if licenseComplianceDeniesMr feature flag is disabled 2`] = `
<div
class="form-check"
>
<input
aria-describedby="js-blacklisted-license-radio"
class="form-check-input"
data-qa-selector="blacklisted_license_radio"
id="js-blacklisted-license-radio"
type="radio"
value="blacklisted"
/>
<label
class="form-check-label pt-1"
for="js-blacklisted-license-radio"
>
Deny
</label>
<!---->
</div>
`;
ee/spec/frontend/vue_shared/license_compliance/components/add_license_form_spec.js
View file @
956554b2
...
...
@@ -154,9 +154,10 @@ describe('AddLicenseForm', () => {
vm
=
mountComponent
(
Component
,
{
managedLicenses
:
[{
name
:
'
FOO
'
}]
});
vm
.
licenseName
=
'
FOO
'
;
Vue
.
nextTick
(()
=>
{
const
formCheckElement
=
vm
.
$el
.
querySelector
(
'
.form-check
'
);
const
formCheckElement
s
=
vm
.
$el
.
querySelectorAll
(
'
.form-check
'
);
expect
(
formCheckElement
.
element
).
toMatchSnapshot
();
expect
(
formCheckElements
[
0
]).
toMatchSnapshot
();
expect
(
formCheckElements
[
1
]).
toMatchSnapshot
();
done
();
});
});
...
...
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