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
ce3fb0ef
Commit
ce3fb0ef
authored
Mar 12, 2021
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove frontend usage and fix feature spec
Remove DOMContentLoaded since no longer recommended
parent
0c5d276a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
ee/app/assets/javascripts/pages/projects/integrations/jira/issues/index.js
...ascripts/pages/projects/integrations/jira/issues/index.js
+1
-10
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
+2
-1
No files found.
ee/app/assets/javascripts/pages/projects/integrations/jira/issues/index.js
View file @
ce3fb0ef
import
initJiraIssuesList
from
'
ee/integrations/jira/issues_list/jira_issues_list_bundle
'
;
import
initIssuablesList
from
'
~/issues_list
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
if
(
gon
.
features
.
jiraIssuesList
)
{
initJiraIssuesList
({
mountPointSelector
:
'
#js-jira-issues-list
'
,
});
}
else
{
initIssuablesList
();
}
});
initJiraIssuesList
({
mountPointSelector
:
'
#js-jira-issues-list
'
});
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
View file @
ce3fb0ef
...
...
@@ -11,6 +11,7 @@ RSpec.describe 'Jira issues list' do
stub_licensed_features
(
jira_issues_integration:
true
)
project
.
add_user
(
user
,
:developer
)
sign_in
(
user
)
stub_request
(
:get
,
/.*jira.example.com.*/
)
end
context
'when jira_issues_integration licensed feature is not available'
do
...
...
@@ -26,7 +27,7 @@ RSpec.describe 'Jira issues list' do
end
end
it
'renders "Create new issue" button'
do
it
'renders "Create new issue" button'
,
:js
do
visit
project_integrations_jira_issues_path
(
project
)
expect
(
page
).
to
have_link
(
'Create new issue in Jira'
)
...
...
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