Cucumber Ltd / cucumber-pro

List projectsfeatures/projects/list_projects.feature

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

Romain Gérard

Currently viewing

Feature: List projects

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

Rules

  • Public projects can be seen by anyone
    • Unauthenticated users
    • Authenticated users
  • Private projects can only be accessed by (authenticated) collaborators
    • Initially the only collaborator on a project is its creator.

Background:

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectprivate
    Janejanes-public-projectpublic
    Bobbobs-public-projectpublic

Scenario: you can list projects you are a collaborator of

  • When Jane lists the projects
  • Then Jane should see the following projects:
    projectName
    janes-private-project
    janes-public-project

Scenario: you can't list private projects you are not a collaborator on

  • When Bob lists the projects
  • Then Bob should see the following projects:
    projectName
    bobs-public-project
  • @todo

Scenario: browse public projects

  • When AnonymousVisitor lists all the public projects
  • Then AnonymousVisitor should see the following projects:
    projectName
    bobs-public-project