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
37b5b7a5
Commit
37b5b7a5
authored
Mar 25, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-up-emoji-tests' into 'master'
Fix up emoji tests that should be failing See merge request !10231
parents
34870e16
f7d69a74
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
features/steps/project/issues/award_emoji.rb
features/steps/project/issues/award_emoji.rb
+1
-1
features/steps/shared/diff_note.rb
features/steps/shared/diff_note.rb
+2
-2
features/steps/shared/markdown.rb
features/steps/shared/markdown.rb
+1
-1
features/steps/shared/note.rb
features/steps/shared/note.rb
+1
-1
spec/features/admin/admin_broadcast_messages_spec.rb
spec/features/admin/admin_broadcast_messages_spec.rb
+1
-1
No files found.
features/steps/project/issues/award_emoji.rb
View file @
37b5b7a5
...
@@ -45,7 +45,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
...
@@ -45,7 +45,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
end
step
'I have new comment with emoji added'
do
step
'I have new comment with emoji added'
do
expect
(
page
).
to
have_selector
".emoji[title=':smile:']"
expect
(
page
).
to
have_selector
'gl-emoji[data-name="smile"]'
end
end
step
'I have award added'
do
step
'I have award added'
do
...
...
features/steps/shared/diff_note.rb
View file @
37b5b7a5
...
@@ -196,7 +196,7 @@ module SharedDiffNote
...
@@ -196,7 +196,7 @@ module SharedDiffNote
step
'The diff comment preview tab should display rendered Markdown'
do
step
'The diff comment preview tab should display rendered Markdown'
do
page
.
within
(
diff_file_selector
)
do
page
.
within
(
diff_file_selector
)
do
find
(
'.js-md-preview-button'
).
click
find
(
'.js-md-preview-button'
).
click
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
img.
emoji'
,
visible:
true
)
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
gl-
emoji'
,
visible:
true
)
end
end
end
end
...
@@ -210,7 +210,7 @@ module SharedDiffNote
...
@@ -210,7 +210,7 @@ module SharedDiffNote
step
'I should see a diff comment with an emoji image'
do
step
'I should see a diff comment with an emoji image'
do
page
.
within
(
"
#{
diff_file_selector
}
.note"
)
do
page
.
within
(
"
#{
diff_file_selector
}
.note"
)
do
expect
(
page
).
to
have_xpath
(
"//
img[@alt=':smile:
']"
)
expect
(
page
).
to
have_xpath
(
"//
gl-emoji[@data-name='smile
']"
)
end
end
end
end
...
...
features/steps/shared/markdown.rb
View file @
37b5b7a5
...
@@ -40,7 +40,7 @@ module SharedMarkdown
...
@@ -40,7 +40,7 @@ module SharedMarkdown
step
'The Markdown preview tab should display rendered Markdown'
do
step
'The Markdown preview tab should display rendered Markdown'
do
page
.
within
(
'.gfm-form'
)
do
page
.
within
(
'.gfm-form'
)
do
find
(
'.js-md-preview-button'
).
click
find
(
'.js-md-preview-button'
).
click
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
img.
emoji'
,
visible:
true
)
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
gl-
emoji'
,
visible:
true
)
end
end
end
end
...
...
features/steps/shared/note.rb
View file @
37b5b7a5
...
@@ -95,7 +95,7 @@ module SharedNote
...
@@ -95,7 +95,7 @@ module SharedNote
step
'The comment preview tab should be display rendered Markdown'
do
step
'The comment preview tab should be display rendered Markdown'
do
page
.
within
(
".js-main-target-form"
)
do
page
.
within
(
".js-main-target-form"
)
do
find
(
'.js-md-preview-button'
).
click
find
(
'.js-md-preview-button'
).
click
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
img.
emoji'
,
visible:
true
)
expect
(
find
(
'.js-md-preview'
)).
to
have_css
(
'
gl-
emoji'
,
visible:
true
)
end
end
end
end
...
...
spec/features/admin/admin_broadcast_messages_spec.rb
View file @
37b5b7a5
...
@@ -45,7 +45,7 @@ feature 'Admin Broadcast Messages', feature: true do
...
@@ -45,7 +45,7 @@ feature 'Admin Broadcast Messages', feature: true do
page
.
within
(
'.broadcast-message-preview'
)
do
page
.
within
(
'.broadcast-message-preview'
)
do
expect
(
page
).
to
have_selector
(
'strong'
,
text:
'Markdown'
)
expect
(
page
).
to
have_selector
(
'strong'
,
text:
'Markdown'
)
expect
(
page
).
to
have_selector
(
'
img.emoji
'
)
expect
(
page
).
to
have_selector
(
'
gl-emoji[data-name="tada"]
'
)
end
end
end
end
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