2012-06-16 06:03:20 -04:00
|
|
|
Feature: Project Network Graph
|
|
|
|
Background:
|
2012-09-10 09:35:23 -04:00
|
|
|
Given I sign in as a user
|
2012-06-16 06:03:20 -04:00
|
|
|
And I own project "Shop"
|
2012-08-21 22:20:09 -04:00
|
|
|
And I visit project "Shop" network page
|
2012-06-16 06:03:20 -04:00
|
|
|
|
2012-09-10 09:35:23 -04:00
|
|
|
@javascript
|
2012-06-16 06:03:20 -04:00
|
|
|
Scenario: I should see project network
|
|
|
|
Then page should have network graph
|
2013-03-04 03:50:42 -05:00
|
|
|
And page should select "master" in select box
|
|
|
|
And page should have "master" on graph
|
|
|
|
|
|
|
|
@javascript
|
2013-04-25 09:05:22 -04:00
|
|
|
Scenario: I should switch "branch" and "tag"
|
2013-03-04 03:50:42 -05:00
|
|
|
When I switch ref to "stable"
|
2013-04-25 09:05:22 -04:00
|
|
|
Then page should select "stable" in select box
|
2013-03-04 03:50:42 -05:00
|
|
|
And page should have "stable" on graph
|
2013-04-25 09:05:22 -04:00
|
|
|
When I switch ref to "v2.1.0"
|
|
|
|
Then page should select "v2.1.0" in select box
|
|
|
|
And page should have "v2.1.0" on graph
|
2013-03-04 03:50:42 -05:00
|
|
|
|
|
|
|
@javascript
|
2013-04-25 09:05:22 -04:00
|
|
|
Scenario: I should looking for a commit by SHA
|
2013-03-04 03:50:42 -05:00
|
|
|
When I looking for a commit by SHA of "v2.1.0"
|
|
|
|
Then page should have network graph
|
|
|
|
And page should select "master" in select box
|
|
|
|
And page should have "v2.1.0" on graph
|
2013-04-14 05:15:35 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I should filter selected tag
|
|
|
|
When I switch ref to "v2.1.0"
|
|
|
|
Then page should have content not cotaining "v2.1.0"
|
|
|
|
When click "Show only selected branch" checkbox
|
|
|
|
Then page should not have content not cotaining "v2.1.0"
|
|
|
|
When click "Show only selected branch" checkbox
|
|
|
|
Then page should have content not cotaining "v2.1.0"
|
2013-08-21 03:55:18 -04:00
|
|
|
|
|
|
|
Scenario: I should fail to look for a commit
|
|
|
|
When I look for a commit by ";"
|
|
|
|
Then page status code should be 404
|