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
diff options
context:
space:
mode:
authorswoichha <swoichhaa@gmail.com>2021-04-15 11:05:44 +0300
committerArtur Neumann <artur@jankaritech.com>2021-04-15 14:23:09 +0300
commit089c037a2f7a19c0a01ab0e58aa26bfeb0fa85f9 (patch)
tree4e6460d20d448e06132d5bb2602f13740ad4c336 /test/gui/shared/steps
parentda480617d6b9b5f89c88836c60c5ad2d0caa8359 (diff)
add new step for polling interval
Diffstat (limited to 'test/gui/shared/steps')
-rw-r--r--test/gui/shared/steps/steps.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py
index d46f996c7..c548703be 100644
--- a/test/gui/shared/steps/steps.py
+++ b/test/gui/shared/steps/steps.py
@@ -48,7 +48,7 @@ def step(context, displayname, host):
), displayname + "\n" + host
)
-def setUpClient(context, username, password, configContent):
+def setUpClient(context, username, password, pollingInterval):
userSetting = '''
[Accounts]
0/Folders/1/ignoreHiddenFiles=true
@@ -67,7 +67,7 @@ def setUpClient(context, username, password, configContent):
version=2
'''
userFirstName = username.split()
- userSetting = userSetting + configContent
+ userSetting = userSetting + pollingInterval
args = {'displayUserName': username,
'davUserName': username.lower(),
'displayUserFirstName': userFirstName[0],
@@ -87,13 +87,15 @@ def setUpClient(context, username, password, configContent):
clickButton(waitForObject(names.enter_Password_OK_QPushButton))
except LookupError:
pass
-
-@Given('user "|any|" has set up a client with these settings and password |any|:')
+
+@Given('user "|any|" has set up a client with poll interval settings and password "|any|"')
def step(context, username, password):
- configContent = "\n".join(context.multiLineText)
- setUpClient(context, username, password, configContent)
-
-@Given('user "|any|" has set up a client with default settings and password |any|')
+ pollingInterval='''[ownCloud]
+ remotePollInterval=5000
+ '''
+ setUpClient(context, username, password, pollingInterval)
+
+@Given('user "|any|" has set up a client with default settings and password "|any|"')
def step(context, username, password):
setUpClient(context, username, password,'')