2012-09-10 14:34:01 +02:00
|
|
|
Feature: Project Browse files
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-15 06:15:28 +02: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
|
|
|
|
Given I visit project source page for "8470d70"
|
|
|
|
Then I should see files from repository for "8470d70"
|
|
|
|
|
|
|
|
Scenario: I browse file content
|
2012-09-10 14:34:01 +02:00
|
|
|
Given I click on "Gemfile" file in repo
|
2012-06-15 06:15:28 +02:00
|
|
|
Then I should see it content
|
|
|
|
|
|
|
|
Scenario: I browse raw file
|
2012-09-10 14:34:01 +02:00
|
|
|
Given I visit blob file from repo
|
|
|
|
And I click link "raw"
|
2012-06-15 06:15:28 +02:00
|
|
|
Then I should see raw file content
|
2012-10-12 18:56:06 +02:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can edit file
|
|
|
|
Given I click on "Gemfile" file in repo
|
|
|
|
And I click button "Edit"
|
|
|
|
Then I can edit file
|