Commit aee71022 authored by Markus Koller's avatar Markus Koller

Merge branch...

Merge branch '212996-flaky-test-in-spec-features-markdown-mermaid_spec-rb-105-mermaid-rendering-correctly-sizes' into 'master'

Resolve flaky test in spec/features/markdown/mermaid_spec.rb:105

Closes #212996

See merge request gitlab-org/gitlab!32826
parents 11014ce9 37c59e12
......@@ -118,10 +118,7 @@ describe 'Mermaid rendering', :js do
visit project_issue_path(project, issue)
svg = page.find('svg.mermaid')
expect(svg[:style]).to match(/max-width/)
expect(svg[:width].to_i).to eq(100)
expect(svg[:height].to_i).to eq(0)
expect(page).to have_css('svg.mermaid[style*="max-width"][width="100%"]')
end
it 'display button when diagram exceeds length', :js do
......
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