Commit 47d9732a authored by Valeriy Sizov's avatar Valeriy Sizov

WebEditor: minor spinach fixes

parent 2a78ae60
...@@ -24,4 +24,4 @@ Feature: Project Browse files ...@@ -24,4 +24,4 @@ Feature: Project Browse files
Scenario: I can edit file Scenario: I can edit file
Given I click on "Gemfile" file in repo Given I click on "Gemfile" file in repo
And I click button "Edit" And I click button "Edit"
Then I can edit file Then I can edit code
...@@ -36,7 +36,7 @@ class ProjectBrowseFiles < Spinach::FeatureSteps ...@@ -36,7 +36,7 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
click_link 'Edit' click_link 'Edit'
end end
Given 'I can edit file' do Then 'I can edit code' do
page.execute_script('editor.setValue("GitlabFileEditor")') page.execute_script('editor.setValue("GitlabFileEditor")')
page.evaluate_script('editor.getValue()').should == "GitlabFileEditor" page.evaluate_script('editor.getValue()').should == "GitlabFileEditor"
end end
......
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