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
b7a4b66f
Commit
b7a4b66f
authored
Jun 21, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for conditional margin
* Check for margin when feature flag enabled/disabled
parent
a2486975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ee/spec/frontend/vue_shared/license_compliance/components/add_license_form_spec.js
...ed/license_compliance/components/add_license_form_spec.js
+6
-0
No files found.
ee/spec/frontend/vue_shared/license_compliance/components/add_license_form_spec.js
View file @
b7a4b66f
...
...
@@ -128,6 +128,7 @@ describe('AddLicenseForm', () => {
vm
.
licenseName
=
'
FOO
'
;
Vue
.
nextTick
(()
=>
{
const
feedbackElement
=
vm
.
$el
.
querySelectorAll
(
'
.text-secondary
'
);
const
formCheckElementMargin
=
vm
.
$el
.
querySelector
(
'
.form-check.mb-3
'
);
expect
(
feedbackElement
[
0
].
innerText
.
trim
()).
toBe
(
'
Acceptable license to be used in the project
'
,
...
...
@@ -136,6 +137,9 @@ describe('AddLicenseForm', () => {
expect
(
feedbackElement
[
1
].
innerText
.
trim
()).
toBe
(
'
Disallow merge request if detected and will instruct developer to remove
'
,
);
expect
(
formCheckElementMargin
).
not
.
toBeNull
();
done
();
});
});
...
...
@@ -145,8 +149,10 @@ describe('AddLicenseForm', () => {
vm
.
licenseName
=
'
FOO
'
;
Vue
.
nextTick
(()
=>
{
const
feedbackElement
=
vm
.
$el
.
querySelectorAll
(
'
.text-secondary
'
);
const
formCheckElementMargin
=
vm
.
$el
.
querySelector
(
'
.form-check.mb-3
'
);
expect
(
feedbackElement
.
length
).
toBe
(
0
);
expect
(
formCheckElementMargin
).
toBeNull
();
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