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
f1f2b5b3
Commit
f1f2b5b3
authored
Apr 14, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Epic board sidebar - Edit subscribed state
Review feedback
parent
21dc2ef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
ee/spec/features/epic_boards/epic_boards_sidebar_spec.rb
ee/spec/features/epic_boards/epic_boards_sidebar_spec.rb
+7
-10
No files found.
ee/spec/features/epic_boards/epic_boards_sidebar_spec.rb
View file @
f1f2b5b3
...
...
@@ -114,11 +114,11 @@ RSpec.describe 'Epic boards sidebar', :js do
page
.
within
(
'.confidentiality'
)
do
expect
(
page
).
to
have_content
(
'Not confidential'
)
find
(
'[data-testid="edit-button"]'
).
click
click_button
'Edit'
expect
(
page
).
to
have_css
(
'.sidebar-item-warning-message'
)
within
(
'.sidebar-item-warning-message'
)
do
find
(
'[data-testid="confidential-toggle"]'
).
click
click_button
'Turn on'
end
wait_for_requests
...
...
@@ -133,8 +133,7 @@ RSpec.describe 'Epic boards sidebar', :js do
click_card
(
card
)
page
.
within
(
'[data-testid="sidebar-notifications"]'
)
do
expect
(
page
).
to
have_selector
(
'[data-testid="notification-subscribe-toggle"]'
)
expect
(
page
).
to
have_content
(
'Notifications'
)
expect
(
page
).
to
have_button
(
'Notifications'
)
expect
(
page
).
not_to
have_content
(
'Notifications have been disabled by the project or group owner'
)
end
end
...
...
@@ -142,15 +141,13 @@ RSpec.describe 'Epic boards sidebar', :js do
it
'shows toggle as on then as off as user toggles to subscribe and unsubscribe'
,
:aggregate_failures
do
click_card
(
card
)
toggle
=
find
(
'[data-testid="notification-subscribe-toggle"]'
)
toggle
.
click
click_button
'Notifications'
expect
(
toggle
).
to
have_css
(
"button.is-checked"
)
expect
(
page
).
to
have_button
(
'Notifications'
,
class:
'is-checked'
)
toggle
.
click
click_button
'Notifications'
expect
(
toggle
).
not_to
have_css
(
"button.is-checked"
)
expect
(
page
).
not_to
have_button
(
'Notifications'
,
class:
'is-checked'
)
end
context
'when notifications have been disabled'
do
...
...
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