Skip to content

Commit

Permalink
showing datasets on user profile (#60)
Browse files Browse the repository at this point in the history
user story and acceptance test scenarios drafted
  • Loading branch information
Rija Menage committed Jan 21, 2018
1 parent 8c87a09 commit 2ae0c43
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion tests/features/datasets-on-profile-60.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
Feature: shows datasets authored by a user on his/her profile
As a gigadb user,
I want to see on my profile the datasets that I have authored
So that I can manage them conveniently from one place
So that I can manage them conveniently from one place


Scenario: user is associated to an author of existing dataset
Given I am logged in as "user@gigadb.org"
And I am linked to author "Zhang, G" of dataset "/dataset/100002"
When I am on "/user/view_profile"
Then I should see "Your Authored Datasets"
And I should see "Genomic data from Adelie penguin (Pygoscelis adeliae)"

Scenario: no association with dataset author made
Given I am logged in as "user@gigadb.org"
When I am on "/user/view_profile"
Then I should not see "Your Authored Datasets"

Scenario: user has a pending claim on a dataset author
Given I am logged in as "user@gigadb.org"
When I am on "/user/view_profile"
Then I should not see "Your Authored Datasets"


Scenario: user is associated to an author with no existing dataset
Given I am logged in as "user@gigadb.org"
And I am linked to author "Doe, J"
When I am on "/user/view_profile"
Then I should see "Your Authored Datasets"
And I should not see any results under the section "Your Authored Datasets"

0 comments on commit 2ae0c43

Please sign in to comment.