2012-09-10 08:34:01 -04:00
|
|
|
Feature: Project Browse files
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-15 00:15:28 -04:00
|
|
|
And I own project "Shop"
|
|
|
|
Given I visit project source page
|
|
|
|
|
|
|
|
Scenario: I browse files from master branch
|
|
|
|
Then I should see files from repository
|
|
|
|
|
|
|
|
Scenario: I browse files for specific ref
|
2014-07-31 09:20:47 -04:00
|
|
|
Given I visit project source page for "6d39438"
|
|
|
|
Then I should see files from repository for "6d39438"
|
2012-06-15 00:15:28 -04:00
|
|
|
|
|
|
|
Scenario: I browse file content
|
2014-07-31 09:20:47 -04:00
|
|
|
Given I click on ".gitignore" file in repo
|
2012-06-15 00:15:28 -04:00
|
|
|
Then I should see it content
|
|
|
|
|
|
|
|
Scenario: I browse raw file
|
2012-09-10 08:34:01 -04:00
|
|
|
Given I visit blob file from repo
|
|
|
|
And I click link "raw"
|
2012-06-15 00:15:28 -04:00
|
|
|
Then I should see raw file content
|
2012-10-12 12:56:06 -04:00
|
|
|
|
2013-11-05 03:45:23 -05:00
|
|
|
Scenario: I can create file
|
|
|
|
Given I click on "new file" link in repo
|
|
|
|
Then I can see new file page
|
|
|
|
|
2012-10-12 12:56:06 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: I can edit file
|
2014-07-31 09:20:47 -04:00
|
|
|
Given I click on ".gitignore" file in repo
|
2012-10-15 12:51:11 -04:00
|
|
|
And I click button "edit"
|
2012-10-12 13:27:50 -04:00
|
|
|
Then I can edit code
|
2014-04-15 11:02:02 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can see editing preview
|
2014-07-31 09:20:47 -04:00
|
|
|
Given I click on ".gitignore" file in repo
|
2014-04-15 11:02:02 -04:00
|
|
|
And I click button "edit"
|
|
|
|
And I edit code
|
|
|
|
And I click link "Diff"
|
|
|
|
Then I see diff
|
|
|
|
|
2014-07-09 04:12:02 -04:00
|
|
|
Scenario: I can browse directory with Browse Dir
|
2014-07-31 09:20:47 -04:00
|
|
|
Given I click on files directory
|
2014-07-09 04:12:02 -04:00
|
|
|
And I click on history link
|
|
|
|
Then I see Browse dir link
|
|
|
|
|
|
|
|
Scenario: I can browse file with Browse File
|
|
|
|
Given I click on readme file
|
|
|
|
And I click on history link
|
|
|
|
Then I see Browse file link
|
|
|
|
|
|
|
|
Scenario: I can browse code with Browse Code
|
|
|
|
Given I click on history link
|
|
|
|
Then I see Browse code link
|