-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests-only] add tests for edit files
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: edit files | ||
|
||
As a user | ||
I want to be able to edit the file content | ||
So that I can modify and change file data | ||
|
||
|
||
Background: | ||
Given user "Alice" has been created on the server with default attributes and without skeleton files | ||
|
||
|
||
Scenario Outline: Modify orignal content of a file | ||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "<filename>" on the server | ||
And user "Alice" has set up a client with default settings | ||
When the user overwrites the file "<filename>" with content "overwrite ownCloud test text file" | ||
Then as "Alice" the file "<filename>" on the server should have the content "overwrite ownCloud test text file" | ||
Examples: | ||
| filename | | ||
| textfile.txt | | ||
| textfile.doc | | ||
| textfile.xls | | ||
| textfile.pdf | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source(findFile('scripts', 'python/bdd.py')) | ||
|
||
setupHooks('../shared/scripts/bdd_hooks.py') | ||
collectStepDefinitions('./steps', '../shared/steps') | ||
|
||
|
||
def main(): | ||
testSettings.throwOnFailure = True | ||
runFeatureFile('test.feature') |