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
aac6b2b7
Commit
aac6b2b7
authored
Jun 28, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests to check emoji autocompletion
parent
ffe7c511
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
spec/features/projects/milestones/new_spec.rb
spec/features/projects/milestones/new_spec.rb
+2
-2
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
+2
-2
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
+2
-2
spec/features/tags/master_creates_tag_spec.rb
spec/features/tags/master_creates_tag_spec.rb
+2
-2
spec/features/tags/master_updates_tag_spec.rb
spec/features/tags/master_updates_tag_spec.rb
+2
-2
No files found.
spec/features/projects/milestones/new_spec.rb
View file @
aac6b2b7
...
@@ -9,9 +9,9 @@ feature 'Creating a new project milestone', :js do
...
@@ -9,9 +9,9 @@ feature 'Creating a new project milestone', :js do
visit
new_project_milestone_path
(
project
)
visit
new_project_milestone_path
(
project
)
end
end
it
'description has autocomplete'
do
it
'description has
emoji
autocomplete'
do
find
(
'#milestone_description'
).
native
.
send_keys
(
''
)
find
(
'#milestone_description'
).
native
.
send_keys
(
''
)
fill_in
'milestone_description'
,
with:
'
@
'
fill_in
'milestone_description'
,
with:
'
:
'
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
end
end
...
...
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
View file @
aac6b2b7
...
@@ -242,7 +242,7 @@ describe "User creates wiki page" do
...
@@ -242,7 +242,7 @@ describe "User creates wiki page" do
end
end
end
end
it
"shows the autocompletion dropdown"
do
it
"shows the
emoji
autocompletion dropdown"
do
click_link
(
"New page"
)
click_link
(
"New page"
)
page
.
within
(
"#modal-new-wiki"
)
do
page
.
within
(
"#modal-new-wiki"
)
do
...
@@ -254,7 +254,7 @@ describe "User creates wiki page" do
...
@@ -254,7 +254,7 @@ describe "User creates wiki page" do
page
.
within
(
".wiki-form"
)
do
page
.
within
(
".wiki-form"
)
do
find
(
"#wiki_content"
).
native
.
send_keys
(
""
)
find
(
"#wiki_content"
).
native
.
send_keys
(
""
)
fill_in
(
:wiki_content
,
with:
"
@
"
)
fill_in
(
:wiki_content
,
with:
"
:
"
)
end
end
expect
(
page
).
to
have_selector
(
".atwho-view"
)
expect
(
page
).
to
have_selector
(
".atwho-view"
)
...
...
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
View file @
aac6b2b7
...
@@ -96,11 +96,11 @@ describe 'User updates wiki page' do
...
@@ -96,11 +96,11 @@ describe 'User updates wiki page' do
expect
(
find
(
'textarea#wiki_content'
).
value
).
to
eq
(
''
)
expect
(
find
(
'textarea#wiki_content'
).
value
).
to
eq
(
''
)
end
end
it
'shows the autocompletion dropdown'
,
:js
do
it
'shows the
emoji
autocompletion dropdown'
,
:js
do
click_link
(
'Edit'
)
click_link
(
'Edit'
)
find
(
'#wiki_content'
).
native
.
send_keys
(
''
)
find
(
'#wiki_content'
).
native
.
send_keys
(
''
)
fill_in
(
:wiki_content
,
with:
'
@
'
)
fill_in
(
:wiki_content
,
with:
'
:
'
)
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
end
end
...
...
spec/features/tags/master_creates_tag_spec.rb
View file @
aac6b2b7
...
@@ -75,9 +75,9 @@ feature 'Master creates tag' do
...
@@ -75,9 +75,9 @@ feature 'Master creates tag' do
visit
new_project_tag_path
(
project
)
visit
new_project_tag_path
(
project
)
end
end
it
'description has autocomplete'
,
:js
do
it
'description has
emoji
autocomplete'
,
:js
do
find
(
'#release_description'
).
native
.
send_keys
(
''
)
find
(
'#release_description'
).
native
.
send_keys
(
''
)
fill_in
'release_description'
,
with:
'
@
'
fill_in
'release_description'
,
with:
'
:
'
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
end
end
...
...
spec/features/tags/master_updates_tag_spec.rb
View file @
aac6b2b7
...
@@ -25,13 +25,13 @@ feature 'Master updates tag' do
...
@@ -25,13 +25,13 @@ feature 'Master updates tag' do
expect
(
page
).
to
have_content
'Awesome release notes'
expect
(
page
).
to
have_content
'Awesome release notes'
end
end
scenario
'description has autocomplete'
,
:js
do
scenario
'description has
emoji
autocomplete'
,
:js
do
page
.
within
(
first
(
'.content-list .controls'
))
do
page
.
within
(
first
(
'.content-list .controls'
))
do
click_link
'Edit release notes'
click_link
'Edit release notes'
end
end
find
(
'#release_description'
).
native
.
send_keys
(
''
)
find
(
'#release_description'
).
native
.
send_keys
(
''
)
fill_in
'release_description'
,
with:
'
@
'
fill_in
'release_description'
,
with:
'
:
'
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
expect
(
page
).
to
have_selector
(
'.atwho-view'
)
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