Cucumber Ltd / jam

List projectsfeatures/manage_projects/list_projects.feature

Release Crystal Apple (2018-02-01)

Romain Gérard

Currently viewing

Results for this document from 4 runs in latest build #7117 :

  • passed 6
  • total6 / 239

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