0a05ab9126
When viewing the diff for a changed image file, two bugs occur: - Both the 'before' and 'after' images link to the 'after' commit - Visiting the link for either image will cause a error The first is caused by both image links referencing '@commit.id' rather than '@commit.parent_id'. The second is caused by the use of 'project_tree_path' which is used for creating links to directories in the git file tree. 'project_blob_path' which links to files should be used instead.
41 lines
1.2 KiB
Gherkin
41 lines
1.2 KiB
Gherkin
Feature: Project Browse commits
|
|
Background:
|
|
Given I sign in as a user
|
|
And I own a project
|
|
And I visit my project's commits page
|
|
|
|
Scenario: I browse commits list for master branch
|
|
Then I see project commits
|
|
|
|
Scenario: I browse atom feed of commits list for master branch
|
|
Given I click atom feed link
|
|
Then I see commits atom feed
|
|
|
|
Scenario: I browse commit from list
|
|
Given I click on commit link
|
|
Then I see commit info
|
|
|
|
Scenario: I compare refs
|
|
Given I visit compare refs page
|
|
And I fill compare fields with refs
|
|
Then I see compared refs
|
|
|
|
Scenario: I browse commits for a specific path
|
|
Given I visit my project's commits page for a specific path
|
|
Then I see breadcrumb links
|
|
|
|
Scenario: I browse commits stats
|
|
Given I visit my project's commits stats page
|
|
Then I see commits stats
|
|
|
|
Scenario: I browse big commit
|
|
Given I visit big commit page
|
|
Then I see big commit warning
|
|
|
|
Scenario: I browse huge commit
|
|
Given I visit huge commit page
|
|
Then I see huge commit message
|
|
|
|
Scenario: I browse a commit with an image
|
|
Given I visit a commit with an image that changed
|
|
Then The diff links to both the previous and current image
|