Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSwoichha Adhikari <swoichhaa@gmail.com>2021-10-22 11:49:42 +0300
committerGitHub <noreply@github.com>2021-10-22 11:49:42 +0300
commit226f276ed7bc8dc1ba36cc11ee70329aa36e3fd4 (patch)
tree8b2aa6363f70d0498b0d75163600dc1d2b73cf4a /test
parent841349439e0a353a8934bdfde8964fb055ad1621 (diff)
[tests-only] add tests for edit files (#9077)
* [tests-only] add tests for edit files * edit file with special char
Diffstat (limited to 'test')
-rw-r--r--test/gui/suite.conf2
-rw-r--r--test/gui/tst_editFiles/test.feature16
-rw-r--r--test/gui/tst_editFiles/test.py9
3 files changed, 26 insertions, 1 deletions
diff --git a/test/gui/suite.conf b/test/gui/suite.conf
index ec535920c..5b8da5659 100644
--- a/test/gui/suite.conf
+++ b/test/gui/suite.conf
@@ -4,6 +4,6 @@ HOOK_SUB_PROCESSES=false
IMPLICITAUTSTART=0
LANGUAGE=Python
OBJECTMAPSTYLE=script
-TEST_CASES=tst_addAccount tst_sharing tst_syncing tst_loginLogout tst_removeAccountConnection tst_checkAlltabs tst_vfs tst_deletFilesFolders
+TEST_CASES=tst_addAccount tst_sharing tst_syncing tst_loginLogout tst_removeAccountConnection tst_checkAlltabs tst_vfs tst_deletFilesFolders tst_editFiles
VERSION=3
WRAPPERS=Qt
diff --git a/test/gui/tst_editFiles/test.feature b/test/gui/tst_editFiles/test.feature
new file mode 100644
index 000000000..79376aeaf
--- /dev/null
+++ b/test/gui/tst_editFiles/test.feature
@@ -0,0 +1,16 @@
+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: Modify orignal content of a file with special character
+ Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "S@mpleFile!With,$pecial?Characters.txt" on the server
+ And user "Alice" has set up a client with default settings
+ When the user overwrites the file "S@mpleFile!With,$pecial?Characters.txt" with content "overwrite ownCloud test text file"
+ Then as "Alice" the file "S@mpleFile!With,$pecial?Characters.txt" on the server should have the content "overwrite ownCloud test text file" \ No newline at end of file
diff --git a/test/gui/tst_editFiles/test.py b/test/gui/tst_editFiles/test.py
new file mode 100644
index 000000000..d6224b99e
--- /dev/null
+++ b/test/gui/tst_editFiles/test.py
@@ -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')