WebEditor: spinach
This commit is contained in:
parent
42bdfd021b
commit
358d7eff7d
2 changed files with 16 additions and 0 deletions
|
@ -31,4 +31,14 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
|
|||
Then 'I should see raw file content' do
|
||||
page.source.should == ValidCommit::BLOB_FILE
|
||||
end
|
||||
|
||||
Given 'I click button "Edit"' do
|
||||
click_link 'Edit'
|
||||
end
|
||||
|
||||
Given 'I can edit file' do
|
||||
page.execute_script('editor.setValue("GitlabFileEditor")')
|
||||
page.evaluate_script('editor.getValue()').should == "GitlabFileEditor"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue