diff options
author | swoichha <swoichhaa@gmail.com> | 2021-04-15 11:05:44 +0300 |
---|---|---|
committer | Artur Neumann <artur@jankaritech.com> | 2021-04-15 14:23:09 +0300 |
commit | 089c037a2f7a19c0a01ab0e58aa26bfeb0fa85f9 (patch) | |
tree | 4e6460d20d448e06132d5bb2602f13740ad4c336 /test/gui/shared/steps | |
parent | da480617d6b9b5f89c88836c60c5ad2d0caa8359 (diff) |
add new step for polling interval
Diffstat (limited to 'test/gui/shared/steps')
-rw-r--r-- | test/gui/shared/steps/steps.py | 18 |
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,'') |