Commit 6904556b authored by Dan Davison's avatar Dan Davison Committed by Mike Greiling

Make style attribute selector less brittle

parent 4764d830
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment