summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/test/functional/features/environment.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py
index 379583bc..98c7fa99 100644
--- a/service/test/functional/features/environment.py
+++ b/service/test/functional/features/environment.py
@@ -135,18 +135,20 @@ def after_feature(context, feature):
context.last_mail = None
+def after_scenario(context, scenario):
+ _logout(context)
+ context.browser.refresh()
+
+
def after_step(context, step):
if step.status == 'failed':
_debug_on_error(context, step)
_save_screenshot(context, step)
- _logout(context, step)
+ _logout(context)
-def _logout(context, step):
- if context.browser.current_url == context.inbox_url:
- utils.log_out()
- elif context.browser.current_url == context.backup_account_url:
- BackupAccountPage().logout()
+def _logout(context):
+ context.browser.delete_all_cookies()
def _debug_on_error(context, step):