BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
04178d72
Commit
04178d72
authored
May 25, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed move issue specs
[ci skip]
parent
625d3442
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
edit_actions.vue
...assets/javascripts/issue_show/components/edit_actions.vue
+1
-1
issues_controller_spec.rb
spec/controllers/projects/issues_controller_spec.rb
+1
-1
move_spec.rb
spec/features/issues/move_spec.rb
+5
-3
No files found.
app/assets/javascripts/issue_show/components/edit_actions.vue
View file @
04178d72
...
...
@@ -50,7 +50,7 @@
:class=
"
{ disabled: updateLoading || !isSubmitEnabled }"
type="submit"
:disabled="updateLoading || !isSubmitEnabled"
@click="updateIssuable">
@click
.prevent
="updateIssuable">
Save changes
<i
class=
"fa fa-spinner fa-spin"
...
...
spec/controllers/projects/issues_controller_spec.rb
View file @
04178d72
...
...
@@ -204,7 +204,7 @@ describe Projects::IssuesController do
body
=
JSON
.
parse
(
response
.
body
)
expect
(
body
[
'assignees'
].
first
.
keys
)
.
to
match_array
(
%w(id name username avatar_url)
)
.
to
match_array
(
%w(id name username avatar_url
state web_url
)
)
end
end
...
...
spec/features/issues/move_spec.rb
View file @
04178d72
...
...
@@ -38,9 +38,11 @@ feature 'issue move to another project' do
end
scenario
'moving issue to another project'
,
js:
true
do
find
(
'#
move_to_project_id
'
,
visible:
false
).
set
(
new_project
.
id
)
find
(
'#
issuable-move
'
,
visible:
false
).
set
(
new_project
.
id
)
click_button
(
'Save changes'
)
wait_for_requests
expect
(
current_url
).
to
include
project_path
(
new_project
)
expect
(
page
).
to
have_content
(
"Text with
#{
cross_reference
}#{
mr
.
to_reference
}
"
)
...
...
@@ -51,7 +53,7 @@ feature 'issue move to another project' do
scenario
'searching project dropdown'
,
js:
true
do
new_project_search
.
team
<<
[
user
,
:reporter
]
page
.
within
'.
js-move-dropdow
n'
do
page
.
within
'.
detail-page-descriptio
n'
do
first
(
'.select2-choice'
).
click
end
...
...
@@ -69,7 +71,7 @@ feature 'issue move to another project' do
background
{
another_project
.
team
<<
[
user
,
:guest
]
}
scenario
'browsing projects in projects select'
do
click_link
'
Selec
t project'
click_link
'
Move to a differen
t project'
page
.
within
'.select2-results'
do
expect
(
page
).
to
have_content
'No 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