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
fa5f91cd
Commit
fa5f91cd
authored
Nov 05, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for confirmation modal
parent
32c3a172
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
spec/frontend/integrations/edit/components/integration_form_spec.js
...end/integrations/edit/components/integration_form_spec.js
+13
-2
No files found.
spec/frontend/integrations/edit/components/integration_form_spec.js
View file @
fa5f91cd
...
@@ -9,6 +9,7 @@ import JiraTriggerFields from '~/integrations/edit/components/jira_trigger_field
...
@@ -9,6 +9,7 @@ import JiraTriggerFields from '~/integrations/edit/components/jira_trigger_field
import
JiraIssuesFields
from
'
~/integrations/edit/components/jira_issues_fields.vue
'
;
import
JiraIssuesFields
from
'
~/integrations/edit/components/jira_issues_fields.vue
'
;
import
TriggerFields
from
'
~/integrations/edit/components/trigger_fields.vue
'
;
import
TriggerFields
from
'
~/integrations/edit/components/trigger_fields.vue
'
;
import
DynamicField
from
'
~/integrations/edit/components/dynamic_field.vue
'
;
import
DynamicField
from
'
~/integrations/edit/components/dynamic_field.vue
'
;
import
{
integrationLevels
}
from
'
~/integrations/edit/constants
'
;
describe
(
'
IntegrationForm
'
,
()
=>
{
describe
(
'
IntegrationForm
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
...
@@ -69,14 +70,24 @@ describe('IntegrationForm', () => {
...
@@ -69,14 +70,24 @@ describe('IntegrationForm', () => {
describe
(
'
integrationLevel is instance
'
,
()
=>
{
describe
(
'
integrationLevel is instance
'
,
()
=>
{
it
(
'
renders ConfirmationModal
'
,
()
=>
{
it
(
'
renders ConfirmationModal
'
,
()
=>
{
createComponent
({
createComponent
({
integrationLevel
:
'
instance
'
,
integrationLevel
:
integrationLevels
.
INSTANCE
,
});
});
expect
(
findConfirmationModal
().
exists
()).
toBe
(
true
);
expect
(
findConfirmationModal
().
exists
()).
toBe
(
true
);
});
});
});
});
describe
(
'
integrationLevel is not instance
'
,
()
=>
{
describe
(
'
integrationLevel is group
'
,
()
=>
{
it
(
'
renders ConfirmationModal
'
,
()
=>
{
createComponent
({
integrationLevel
:
integrationLevels
.
GROUP
,
});
expect
(
findConfirmationModal
().
exists
()).
toBe
(
true
);
});
});
describe
(
'
integrationLevel is project
'
,
()
=>
{
it
(
'
does not render ConfirmationModal
'
,
()
=>
{
it
(
'
does not render ConfirmationModal
'
,
()
=>
{
createComponent
({
createComponent
({
integrationLevel
:
'
project
'
,
integrationLevel
:
'
project
'
,
...
...
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