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
db396d5b
Commit
db396d5b
authored
Dec 23, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '25614-transient-failure' into 'master'
Improve spec for resetting incoming email token Closes #25614 See merge request !8296
parents
5866f7b3
65322905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
issues_spec.rb
spec/features/issues_spec.rb
+8
-6
No files found.
spec/features/issues_spec.rb
View file @
db396d5b
...
...
@@ -371,23 +371,25 @@ describe 'Issues', feature: true do
describe
'when I want to reset my incoming email token'
do
let
(
:project1
)
{
create
(
:project
,
namespace:
@user
.
namespace
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project1
)
}
let
!
(
:issue
)
{
create
(
:issue
,
project:
project1
)
}
before
do
allow
(
Gitlab
.
config
.
incoming_email
).
to
receive
(
:enabled
).
and_return
(
true
)
stub_incoming_email_setting
(
enabled:
true
,
address:
"p+%{key}@gl.ab"
)
project1
.
team
<<
[
@user
,
:master
]
project1
.
issues
<<
issue
visit
namespace_project_issues_path
(
@user
.
namespace
,
project1
)
end
it
'changes incoming email address token'
,
js:
true
do
find
(
'.issue-email-modal-btn'
).
click
previous_token
=
find
(
'input#issue_email'
).
value
find
(
'.incoming-email-token-reset'
).
click
wait_for_ajax
expect
(
find
(
'input#issue_email'
).
value
).
not_to
eq
(
previous_token
)
expect
(
page
).
to
have_no_field
(
'issue_email'
,
with:
previous_token
)
new_token
=
project1
.
new_issue_address
(
@user
.
reload
)
expect
(
page
).
to
have_field
(
'issue_email'
,
with:
new_token
)
end
end
...
...
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