browse_files.feature 1.47 KB
Newer Older
1 2 3
Feature: Project Browse files
  Background:
    Given I sign in as a user
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4 5 6 7 8 9 10 11 12 13 14
    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
15
    Given I click on "Gemfile.lock" file in repo
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
16 17 18
    Then I should see it content

  Scenario: I browse raw file
19 20
    Given I visit blob file from repo
    And I click link "raw"
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21
    Then I should see raw file content
Valeriy Sizov's avatar
Valeriy Sizov committed
22

23 24 25 26
  Scenario: I can create file
    Given I click on "new file" link in repo
    Then I can see new file page

Valeriy Sizov's avatar
Valeriy Sizov committed
27 28
  @javascript
  Scenario: I can edit file
29
    Given I click on "Gemfile.lock" file in repo
30
    And I click button "edit"
31
    Then I can edit code
skv-headless's avatar
skv-headless committed
32 33 34 35 36 37 38 39 40

  @javascript
  Scenario: I can see editing preview
    Given I click on "Gemfile.lock" file in repo
    And I click button "edit"
    And I edit code
    And I click link "Diff"
    Then I see diff

41 42 43 44 45 46 47 48 49 50 51 52 53
  Scenario: I can browse directory with Browse Dir
    Given I click on app directory
    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