summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/features/runners_shared_examples.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_examples/features/runners_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/features/runners_shared_examples.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/support/shared_examples/features/runners_shared_examples.rb b/spec/support/shared_examples/features/runners_shared_examples.rb
index 31ee08ea9db..1d4af944187 100644
--- a/spec/support/shared_examples/features/runners_shared_examples.rb
+++ b/spec/support/shared_examples/features/runners_shared_examples.rb
@@ -146,6 +146,18 @@ RSpec.shared_examples 'pauses, resumes and deletes a runner' do
end
end
+RSpec.shared_examples 'filters by tag' do
+ it 'shows correct runner when tag matches' do
+ expect(page).to have_content found_runner
+ expect(page).to have_content missing_runner
+
+ input_filtered_search_filter_is_only('Tags', tag)
+
+ expect(page).to have_content found_runner
+ expect(page).not_to have_content missing_runner
+ end
+end
+
RSpec.shared_examples 'submits edit runner form' do
it 'breadcrumb contains runner id and token' do
page.within '[data-testid="breadcrumb-links"]' do