diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-03 15:07:43 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-03 15:07:43 +0300 |
commit | 5dbbec4612d12d00d9db6ad057044054b923817f (patch) | |
tree | 08f392a1df5d84e8eccaf539968c884589517778 /features/steps/project | |
parent | e8fc5591a2861b5c577b8f27d69912897077349b (diff) | |
parent | 18fa1550251655ce84a0886caaab7262fbeb9c51 (diff) |
Merge pull request #8520 from cirosantilli/edit-blob-link-tests
Add tests for disabled blob edit button cases v2
Diffstat (limited to 'features/steps/project')
-rw-r--r-- | features/steps/project/source/browse_files.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/project/source/browse_files.rb b/features/steps/project/source/browse_files.rb index ddd501d4f88..805e6ff0eac 100644 --- a/features/steps/project/source/browse_files.rb +++ b/features/steps/project/source/browse_files.rb @@ -48,6 +48,14 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps click_link 'Edit' end + step 'I cannot see the edit button' do + page.should_not have_link 'edit' + end + + step 'The edit button is disabled' do + page.should have_css '.disabled', text: 'Edit' + end + step 'I can edit code' do set_new_content evaluate_script('editor.getValue()').should == new_gitignore_content |