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
6904556b
Commit
6904556b
authored
Apr 27, 2021
by
Dan Davison
Committed by
Mike Greiling
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make style attribute selector less brittle
parent
4764d830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec/features/markdown/math_spec.rb
spec/features/markdown/math_spec.rb
+1
-1
No files found.
spec/features/markdown/math_spec.rb
View file @
6904556b
...
...
@@ -47,7 +47,7 @@ RSpec.describe 'Math rendering', :js do
page
.
within
'.description > .md'
do
# unfortunately there is no class selector for KaTeX's "unsupported command"
# formatting so we must match the style attribute
expect
(
page
).
to
have_selector
(
'.katex-html .mord[style
="color:#cc0000;
"]'
,
text:
'\href'
)
expect
(
page
).
to
have_selector
(
'.katex-html .mord[style
*="color:"][style*="#cc0000
"]'
,
text:
'\href'
)
expect
(
page
).
to
have_selector
(
'.katex-html a'
,
text:
'Gitlab'
)
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