Cucumber Ltd / cucumber-pro

Delete projectsfeatures/projects/delete_projects.feature

Release Dasher II (patch 1) (2018-12-13)

Romain Gérard

Currently viewing

Feature: Delete projects

Whether or not a user can delete a project depends on a number of rules.

Rules

  • Projects can only be deleted by their collaborators

Scenario: you can't view a deleted project

  • Given Dolly has created dollys-project
  • And Dolly has listed the projects
  • When Dolly deletes dollys-project
  • Then dollys-project should disappear from Dolly's project list
  • And Dolly should not be able to read dollys-project's documentation

Scenario: you can't access the repository of a deleted project

  • Given Dolly has created dollys-project
  • And Dolly has uploaded her public key
  • When Dolly deletes dollys-project
  • Then Dolly should not be able to clone dollys-project's repository
  • @not-ui-testable

Scenario: you can't delete a private project you're not a collaborator on

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectprivate
  • When Bob tries to delete janes-private-project
  • Then Bob should be prevented from deleting the project

Scenario: you can't delete a public project you're not a collaborator on

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectpublic
  • When Bob tries to delete janes-private-project
  • Then Bob should be prevented from deleting the project