Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-30 01:11:30 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-01 01:32:03 +0400
commit0d4ae0e392b3ea5c5ff3b0fd37725cdc07a70191 (patch)
tree30726dc68cba3b26165e44055af8e48e7666760b /features
parent2b88c9cd15d79ff755cea501d5d6fb511538de73 (diff)
Titleize blob action buttons.
Diffstat (limited to 'features')
-rw-r--r--features/project/source/browse_files.feature18
-rw-r--r--features/project/source/git_blame.feature2
-rw-r--r--features/steps/project/browse_files.rb20
-rw-r--r--features/steps/project/browse_git_repo.rb4
4 files changed, 22 insertions, 22 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature
index d658f545d1c..1cd3a91667f 100644
--- a/features/project/source/browse_files.feature
+++ b/features/project/source/browse_files.feature
@@ -17,7 +17,7 @@ Feature: Project Browse files
Scenario: I browse raw file
Given I visit blob file from repo
- And I click link "raw"
+ And I click link "Raw"
Then I should see raw file content
Scenario: I can create file
@@ -37,13 +37,13 @@ Feature: Project Browse files
@javascript
Scenario: I can edit file
Given I click on ".gitignore" file in repo
- And I click button "edit"
+ And I click button "Edit"
Then I can edit code
@javascript
Scenario: I can edit and commit file
Given I click on ".gitignore" file in repo
- And I click button "edit"
+ And I click button "Edit"
And I edit code
And I fill the commit message
And I click on "Commit changes"
@@ -53,7 +53,7 @@ Feature: Project Browse files
@javascript
Scenario: I can see editing preview
Given I click on ".gitignore" file in repo
- And I click button "edit"
+ And I click button "Edit"
And I edit code
And I click link "Diff"
Then I see diff
@@ -62,7 +62,7 @@ Feature: Project Browse files
Scenario: I can remove file and commit
Given I click on ".gitignore" file in repo
And I see the ".gitignore"
- And I click on "remove"
+ And I click on "Remove"
And I fill the commit message
And I click on "Remove file"
Then I am redirected to the files URL
@@ -70,23 +70,23 @@ Feature: Project Browse files
Scenario: I can browse directory with Browse Dir
Given I click on files directory
- And I click on history link
+ 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
+ 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
+ Given I click on History link
Then I see Browse code link
# Permalink
Scenario: I click on the permalink link from a branch ref
Given I click on ".gitignore" file in repo
- And I click on permalink
+ And I click on Permalink
Then I am redirected to the permalink URL
Scenario: I don't see the permalink link from a SHA ref
diff --git a/features/project/source/git_blame.feature b/features/project/source/git_blame.feature
index ae62c166c12..cb993ffc639 100644
--- a/features/project/source/git_blame.feature
+++ b/features/project/source/git_blame.feature
@@ -6,5 +6,5 @@ Feature: Project Browse git repo
Scenario: I blame file
Given I click on ".gitignore" file in repo
- And I click blame button
+ And I click Blame button
Then I should see git file blame
diff --git a/features/steps/project/browse_files.rb b/features/steps/project/browse_files.rb
index c8dfda2b68b..4310f519032 100644
--- a/features/steps/project/browse_files.rb
+++ b/features/steps/project/browse_files.rb
@@ -36,16 +36,16 @@ class Spinach::Features::ProjectBrowseFiles < Spinach::FeatureSteps
page.should have_content new_gitignore_content
end
- step 'I click link "raw"' do
- click_link "raw"
+ step 'I click link "Raw"' do
+ click_link 'Raw'
end
step 'I should see raw file content' do
source.should == sample_blob.data
end
- step 'I click button "edit"' do
- click_link 'edit'
+ step 'I click button "Edit"' do
+ click_link 'Edit'
end
step 'I can edit code' do
@@ -73,8 +73,8 @@ class Spinach::Features::ProjectBrowseFiles < Spinach::FeatureSteps
click_button 'Commit changes'
end
- step 'I click on "remove"' do
- click_link 'remove'
+ step 'I click on "Remove"' do
+ click_link 'Remove'
end
step 'I click on "Remove file"' do
@@ -99,8 +99,8 @@ class Spinach::Features::ProjectBrowseFiles < Spinach::FeatureSteps
click_link 'files'
end
- step 'I click on history link' do
- click_link 'history'
+ step 'I click on History link' do
+ click_link 'History'
end
step 'I see Browse dir link' do
@@ -125,8 +125,8 @@ class Spinach::Features::ProjectBrowseFiles < Spinach::FeatureSteps
page.should_not have_link 'Browse Dir ยป'
end
- step 'I click on permalink' do
- click_link 'permalink'
+ step 'I click on Permalink' do
+ click_link 'Permalink'
end
step 'I am redirected to the files URL' do
diff --git a/features/steps/project/browse_git_repo.rb b/features/steps/project/browse_git_repo.rb
index 09f44eb4c6d..d8703aadb81 100644
--- a/features/steps/project/browse_git_repo.rb
+++ b/features/steps/project/browse_git_repo.rb
@@ -7,8 +7,8 @@ class Spinach::Features::ProjectBrowseGitRepo < Spinach::FeatureSteps
click_link ".gitignore"
end
- step 'I click blame button' do
- click_link "blame"
+ step 'I click Blame button' do
+ click_link 'Blame'
end
step 'I should see git file blame' do