Skip to content

Add view tests to pipeline subscriptions view

What does this MR do and why?

Describe in detail what your merge request does and why.

To improve the quality and robustness of the pipeline subscriptions view, this MR adds some new view tests to ensure that key components of the view are displayed properly.

Tests for:

  1. Presence of the help button next to the "Project path" title.
  2. Presence of the "delete" button for items in the "Subscriptions" table.
  3. Lack of the "delete" button for items in the "Subscribed to this project" table.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

bin/rspec spec/views/projects/settings/subscriptions/_index.html.haml_spec.rb

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Re: !77332 (comment 811361843)

Edited by Rémy Coutable

Merge request reports