Fix spec
This commit is contained in:
parent
57d71520bd
commit
0f89e6905d
|
@ -110,12 +110,6 @@ Feature: Project Source Browse Files
|
|||
Given I visit a binary file in the repo
|
||||
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
|
||||
Scenario: I can edit and commit file
|
||||
Given I click on ".gitignore" file in repo
|
||||
|
|
|
@ -53,10 +53,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
|
|||
expect(page).not_to have_link 'edit'
|
||||
end
|
||||
|
||||
step 'The edit button is disabled' do
|
||||
expect(page).to have_css '.disabled', text: 'Edit'
|
||||
end
|
||||
|
||||
step 'I can edit code' do
|
||||
set_new_content
|
||||
expect(evaluate_script('blob.editor.getValue()')).to eq new_gitignore_content
|
||||
|
|
Loading…
Reference in New Issue