2014-01-27 09:53:59 -05:00
|
|
|
Feature: User
|
|
|
|
Background:
|
2014-02-07 11:59:55 -05:00
|
|
|
Given User "John Doe" exists
|
2014-06-02 06:43:07 -04:00
|
|
|
And "John Doe" owns private project "Enterprise"
|
2014-01-27 09:53:59 -05:00
|
|
|
|
|
|
|
# Signed out
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-06-02 06:43:07 -04:00
|
|
|
Scenario: I visit user "John Doe" page while not signed in when he owns a public project
|
|
|
|
Given "John Doe" owns internal project "Internal"
|
|
|
|
And "John Doe" owns public project "Community"
|
2014-01-27 09:53:59 -05:00
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should not see project "Enterprise"
|
|
|
|
And I should not see project "Internal"
|
|
|
|
And I should see project "Community"
|
|
|
|
|
|
|
|
# Signed in as someone else
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-06-02 06:43:07 -04:00
|
|
|
Scenario: I visit user "John Doe" page while signed in as someone else when he owns a public project
|
|
|
|
Given "John Doe" owns public project "Community"
|
|
|
|
And "John Doe" owns internal project "Internal"
|
2014-01-27 09:53:59 -05:00
|
|
|
And I sign in as a user
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should not see project "Enterprise"
|
|
|
|
And I should see project "Internal"
|
|
|
|
And I should see project "Community"
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-01-27 09:53:59 -05:00
|
|
|
Scenario: I visit user "John Doe" page while signed in as someone else when he is not authorized to a public project
|
2014-06-02 06:43:07 -04:00
|
|
|
Given "John Doe" owns internal project "Internal"
|
2014-01-27 09:53:59 -05:00
|
|
|
And I sign in as a user
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should not see project "Enterprise"
|
|
|
|
And I should see project "Internal"
|
|
|
|
And I should not see project "Community"
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-01-27 09:53:59 -05:00
|
|
|
Scenario: I visit user "John Doe" page while signed in as someone else when he is not authorized to a project I can see
|
|
|
|
Given I sign in as a user
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should not see project "Enterprise"
|
|
|
|
And I should not see project "Internal"
|
|
|
|
And I should not see project "Community"
|
|
|
|
|
|
|
|
# Signed in as the user himself
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-01-27 09:53:59 -05:00
|
|
|
Scenario: I visit user "John Doe" page while signed in as "John Doe" when he has a public project
|
2014-06-02 06:43:07 -04:00
|
|
|
Given "John Doe" owns internal project "Internal"
|
|
|
|
And "John Doe" owns public project "Community"
|
2014-01-27 09:53:59 -05:00
|
|
|
And I sign in as "John Doe"
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should see project "Enterprise"
|
|
|
|
And I should see project "Internal"
|
|
|
|
And I should see project "Community"
|
|
|
|
|
2016-02-24 11:08:00 -05:00
|
|
|
@javascript
|
2014-01-27 09:53:59 -05:00
|
|
|
Scenario: I visit user "John Doe" page while signed in as "John Doe" when he has no public project
|
|
|
|
Given I sign in as "John Doe"
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Personal projects" tab
|
2014-01-27 09:53:59 -05:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should see project "Enterprise"
|
|
|
|
And I should not see project "Internal"
|
|
|
|
And I should not see project "Community"
|
2015-03-22 16:55:00 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: "John Doe" contribution profile
|
|
|
|
Given I sign in as a user
|
|
|
|
And "John Doe" has contributions
|
|
|
|
When I visit user "John Doe" page
|
2016-03-01 17:42:44 -05:00
|
|
|
And I click on "Contributed projects" tab
|
2015-03-22 16:55:00 -04:00
|
|
|
Then I should see user "John Doe" page
|
|
|
|
And I should see contributed projects
|
|
|
|
And I should see contributions calendar
|