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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
53e64926
Commit
53e64926
authored
Jul 26, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test if we're showing the modal and has the right email
parent
69b5c92e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+19
-0
No files found.
spec/features/issues_spec.rb
View file @
53e64926
...
@@ -524,6 +524,25 @@ describe 'Issues', feature: true do
...
@@ -524,6 +524,25 @@ describe 'Issues', feature: true do
end
end
end
end
describe
'new issue by email'
do
context
'find the modal for new issue by email'
,
js:
true
do
before
do
stub_incoming_email_setting
(
enabled:
true
,
address:
"p+%{key}@gl.ab"
)
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
click_button
(
'Email a new issue'
)
end
it
'has a button to show the email address'
do
page
.
within
'#issue-email-modal'
do
email
=
project
.
new_issue_address
(
@user
)
expect
(
page
).
to
have_selector
(
"input[value='
#{
email
}
']"
)
end
end
end
end
describe
'due date'
do
describe
'due date'
do
context
'update due on issue#show'
,
js:
true
do
context
'update due on issue#show'
,
js:
true
do
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
author:
@user
,
assignee:
@user
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
author:
@user
,
assignee:
@user
)
}
...
...
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