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
Jérome Perrin
gitlab-ce
Commits
ece7a3cf
Commit
ece7a3cf
authored
Jun 22, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'profile/notifications.feature' spinach test with an rspec analog
parent
4b0b2f15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
changelogs/unreleased/replace_spinach_spec_profile_notifications-feature.yml
...ed/replace_spinach_spec_profile_notifications-feature.yml
+4
-0
features/profile/notifications.feature
features/profile/notifications.feature
+0
-15
spec/features/profiles/user_visits_notifications_tab_spec.rb
spec/features/profiles/user_visits_notifications_tab_spec.rb
+21
-0
No files found.
changelogs/unreleased/replace_spinach_spec_profile_notifications-feature.yml
0 → 100644
View file @
ece7a3cf
---
title
:
Replace 'profile/notifications.feature' spinach test with an rspec analog
merge_request
:
12345
author
:
@
blackst0ne
features/profile/notifications.feature
deleted
100644 → 0
View file @
4b0b2f15
@profile
Feature
:
Profile Notifications
Background
:
Given
I sign in as a user
And
I own project
"Shop"
Scenario
:
I
visit notifications tab
When
I visit profile notifications page
Then
I should see global notifications settings
@javascript
Scenario
:
I
edit Project Notifications
Given
I visit profile notifications page
When
I select Mention setting from dropdown
Then
I should see Notification saved message
spec/features/profiles/user_visits_notifications_tab_spec.rb
0 → 100644
View file @
ece7a3cf
require
'spec_helper'
feature
'User visits the notifications tab'
,
js:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
visit
(
profile_notifications_path
)
end
it
'changes the project notifications setting'
do
expect
(
page
).
to
have_content
(
'Notifications'
)
first
(
'#notifications-button'
).
trigger
(
'click'
)
click_link
(
'On mention'
)
expect
(
page
).
to
have_content
(
'On mention'
)
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