diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/support/matchers | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/markdown_matchers.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/support/matchers/markdown_matchers.rb b/spec/support/matchers/markdown_matchers.rb index 103019d8dd8..6e75fa58700 100644 --- a/spec/support/matchers/markdown_matchers.rb +++ b/spec/support/matchers/markdown_matchers.rb @@ -174,6 +174,15 @@ module MarkdownMatchers end end + # AlertReferenceFilter + matcher :reference_alerts do + set_default_markdown_messages + + match do |actual| + expect(actual).to have_selector('a.gfm.gfm-alert', count: 5) + end + end + # TaskListFilter matcher :parse_task_lists do set_default_markdown_messages |