diff options
author | Artur Neumann <artur@jankaritech.com> | 2021-04-23 12:13:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 12:13:23 +0300 |
commit | f77a043b8cb8de578d228b7c485b659705af44dd (patch) | |
tree | 2b6c52579f25127cabe48be6686a6001cbdf32f4 /test/gui/shared/steps | |
parent | 65f3967cba525f4544542672976a351772ff7c3c (diff) |
start the client with correct language setting (#8572)
Diffstat (limited to 'test/gui/shared/steps')
-rw-r--r-- | test/gui/shared/steps/steps.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index e2bc105c5..8d6fba914 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -71,6 +71,10 @@ def step(context, displayname, host): ), displayname + "\n" + host ) +def startClient(): + startApplication("owncloud -s --logfile - --language en_US.utf8 --confdir " + confdir) + snooze(1) + def setUpClient(context, username, password, pollingInterval): userSetting = ''' [Accounts] @@ -102,8 +106,8 @@ def setUpClient(context, username, password, pollingInterval): configFile.write(userSetting) configFile.close() - startApplication("owncloud -s --logfile - --confdir " + confdir) - snooze(1) + startClient() + try: waitForObject(names.enter_Password_Field, 10000) type(waitForObject(names.enter_Password_Field), password) @@ -133,8 +137,7 @@ def step(context, username, password): @Given('the user has started the client') def step(context): - startApplication("owncloud -s --logfile - --confdir " + confdir) - snooze(1) + startClient() @When('the user adds an account with') def step(context): |