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
Boxiang Sun
gitlab-ce
Commits
dfe2a742
Commit
dfe2a742
authored
Jan 31, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix notes specs
parent
fd1b9fdc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
spec/requests/notes_on_merge_requests_spec.rb
spec/requests/notes_on_merge_requests_spec.rb
+4
-4
spec/requests/notes_on_wall_spec.rb
spec/requests/notes_on_wall_spec.rb
+3
-3
No files found.
spec/requests/notes_on_merge_requests_spec.rb
View file @
dfe2a742
...
...
@@ -22,9 +22,9 @@ describe "On a merge request", js: true do
it
{
within
(
".js-main-target-form"
)
{
should_not
have_link
(
"Cancel"
)
}
}
# notifiactions
it
{
within
(
".js-main-target-form"
)
{
should
have_checked_field
(
"
Project team
"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_checked_field
(
"
C
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_unchecked_field
(
"
C
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should
have_checked_field
(
"
Notify team via email
"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_checked_field
(
"
Notify c
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_unchecked_field
(
"
Notify c
ommit author"
)
}
}
describe
"without text"
do
it
{
within
(
".js-main-target-form"
)
{
should
have_css
(
".js-note-preview-button"
,
visible:
false
)
}
}
...
...
@@ -125,7 +125,7 @@ describe "On a merge request diff", js: true, focus: true do
it
{
should
have_css
(
".js-close-discussion-note-form"
,
text:
"Cancel"
)
}
# notification options
it
{
should
have_checked_field
(
"
Project team
"
)
}
it
{
should
have_checked_field
(
"
Notify team via email
"
)
}
it
"shouldn't add a second form for same row"
do
find
(
"#4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185.line_holder .js-add-diff-note-button"
).
trigger
(
"click"
)
...
...
spec/requests/notes_on_wall_spec.rb
View file @
dfe2a742
...
...
@@ -21,9 +21,9 @@ describe "On the project wall", js: true do
it
{
within
(
".js-main-target-form"
)
{
should_not
have_link
(
"Cancel"
)
}
}
# notifiactions
it
{
within
(
".js-main-target-form"
)
{
should
have_checked_field
(
"
Project team
"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_checked_field
(
"
C
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_unchecked_field
(
"
C
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should
have_checked_field
(
"
Notify team via email
"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_checked_field
(
"
Notify c
ommit author"
)
}
}
it
{
within
(
".js-main-target-form"
)
{
should_not
have_unchecked_field
(
"
Notify c
ommit author"
)
}
}
describe
"without text"
do
it
{
within
(
".js-main-target-form"
)
{
should
have_css
(
".js-note-preview-button"
,
visible:
false
)
}
}
...
...
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