Commit 0f89e690 authored by Douwe Maan's avatar Douwe Maan

Fix spec

parent 57d71520
...@@ -110,12 +110,6 @@ Feature: Project Source Browse Files ...@@ -110,12 +110,6 @@ Feature: Project Source Browse Files
Given I visit a binary file in the repo Given I visit a binary file in the repo
Then I cannot see the edit button Then I cannot see the edit button
Scenario: If I don't have edit permission the edit link is disabled
Given public project "Community"
And I visit project "Community" source page
And I click on ".gitignore" file in repo
Then The edit button is disabled
@javascript @javascript
Scenario: I can edit and commit file Scenario: I can edit and commit file
Given I click on ".gitignore" file in repo Given I click on ".gitignore" file in repo
......
...@@ -53,10 +53,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps ...@@ -53,10 +53,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
expect(page).not_to have_link 'edit' expect(page).not_to have_link 'edit'
end end
step 'The edit button is disabled' do
expect(page).to have_css '.disabled', text: 'Edit'
end
step 'I can edit code' do step 'I can edit code' do
set_new_content set_new_content
expect(evaluate_script('blob.editor.getValue()')).to eq new_gitignore_content expect(evaluate_script('blob.editor.getValue()')).to eq new_gitignore_content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment