Frontend: Add Feature specs to release CI component to Catalog and others
We are lacking Feature specs around the release flow of the CI/CD Catalog and a. few other usecases. Here are a few use case that I suggest we test for:
Release flow
- When a user has no permissions to release a ci resource
-
They can view the resource -
They cannot release the resource -
They cannot update the resource
-
- When a user has permissions to release a component
-
They can successfully release it The Release appears in the Catalog
-
- When a resource is unreleased
-
It does not appear in the Catalog
-
- When a resource gets released
-
It appears in the Catalog Is visible on the resource details page
-
- When there are multiple releases
-
it shows the latest version
-
- When creating a resource under a personal namespace
-
User can still publish the resource User B can see the resource
-
Catalog specs
- When unauthenticated
-
The user can still see Catalog resources -
Can see a resource details page
-
- When Ci resource is not released
- and not marked as a resource
-
it does not appear in the Catalog
-
- and marked as a resource
-
it does not appear in the Catalog
-
- and not marked as a resource
- When Ci resource is released
- and marked as a resource
-
it appears in the catalog -
it shows the release version in the details page
-
- when untoggling as a resource
-
it removes it from the catalog
-
- and marked as a resource
- When a project is private
- and the user is a developer
-
it shows the resource
-
- and the user is not a member
-
it does not show the resource
-
- and the user is a developer
Some of these could probably be shared examples like
They can view the resource
They cannot release the resource
They cannot update the resource
Edited by Frédéric Caplette