From 314327f479acdfa7a66de3160c00de11779ec31a Mon Sep 17 00:00:00 2001 From: femi Date: Thu, 26 May 2022 10:01:34 +0100 Subject: [PATCH] feat(@DesktopApp): SignUp Scenario (Squish Test) Ticket: https://github.com/status-im/status-desktop/issues/5718 Include script to erase data file before each test --- test/ui-test/src/utils/FileManager.py | 2 +- .../testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ui-test/src/utils/FileManager.py b/test/ui-test/src/utils/FileManager.py index 2a9497ca08..19686eb88f 100644 --- a/test/ui-test/src/utils/FileManager.py +++ b/test/ui-test/src/utils/FileManager.py @@ -3,7 +3,7 @@ import os.path as path def erase_directory(dir): - directory = path.abspath(path.join(__file__ , "../../../../../" + dir)) + directory = path.abspath(path.join(__file__ , dir)) if (os.path.isdir(directory)): print(directory) try: diff --git a/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py b/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py index 8a88d2de20..9208b5c63b 100644 --- a/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py +++ b/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py @@ -12,7 +12,7 @@ _appClosureTimeout = 2 #[seconds] @OnScenarioStart def hook(context): - erase_directory("Status/data") + erase_directory("../../../../../Status/data") startApplication(_statusDektopAppName) context.userData = {}