diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/8_monitor/incident_management/http_endpoint_integration_creates_alert_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/8_monitor/incident_management/http_endpoint_integration_creates_alert_spec.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/8_monitor/incident_management/http_endpoint_integration_creates_alert_spec.rb b/qa/qa/specs/features/browser_ui/8_monitor/incident_management/http_endpoint_integration_creates_alert_spec.rb new file mode 100644 index 00000000000..8ea728ca94c --- /dev/null +++ b/qa/qa/specs/features/browser_ui/8_monitor/incident_management/http_endpoint_integration_creates_alert_spec.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +module QA + RSpec.describe 'Monitor', product_group: :respond do + describe 'Http endpoint integration' do + let(:project) do + Resource::Project.fabricate_via_api! do |project| + project.name = 'project-for-alerts' + project.description = 'Project for alerts' + end + end + + let(:random_word) { Faker::Lorem.word } + + let(:payload) do + { title: random_word, description: random_word } + end + + before do + Flow::Login.sign_in + project.visit! + Flow::AlertSettings.setup_http_endpoint_and_send_alert(payload: payload) + end + + it( + 'can send test alert that creates new alert', + testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/382803' + ) do + Page::Project::Menu.perform(&:go_to_monitor_alerts) + Page::Project::Monitor::Alerts::Index.perform do |alerts| + expect(alerts).to have_alert_with_title(random_word) + end + end + end + end +end |