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
562857d6
Commit
562857d6
authored
Jan 09, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix admine email spec.
parent
130c306a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
features/admin/emails.feature
features/admin/emails.feature
+1
-1
features/steps/admin/email.rb
features/steps/admin/email.rb
+10
-1
No files found.
features/admin/emails.feature
View file @
562857d6
@admin
Feature
:
Admin email
Background
:
Given
I sign in as an admin
And
there are groups with projects
@javascript
Scenario
:
Create a new email notification
Given
I visit admin email page
When
I submit form with email notification info
...
...
features/steps/admin/email.rb
View file @
562857d6
...
...
@@ -15,7 +15,16 @@ class Spinach::Features::AdminEmail < Spinach::FeatureSteps
within
(
'form#new-admin-email'
)
do
fill_in
:subject
,
with:
'my subject'
fill_in
:body
,
with:
@email_text
select
@selected_group
.
name
,
from: :recipients
# Note: Unable to use select2 helper because
# the helper uses select2 method "val" to select the group from the dropdown
# and the method "val" requires "initSelection" to be used in the select2 call
select2_container
=
first
(
"#s2id_recipients"
)
select2_container
.
find
(
".select2-choice"
).
click
find
(
:xpath
,
"//body"
).
find
(
"input.select2-input"
).
set
(
@selected_group
.
name
)
page
.
execute_script
(
%|$("input.select2-input:visible").keyup();|
)
find
(
:xpath
,
"//body"
).
find
(
".group-name"
,
text:
@selected_group
.
name
).
click
find
(
'.btn-create'
).
click
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