test(suite_settings/tst_mainSettingsSection): Fix test on backup seed phrase (#10204) (#10295)

#8279
This commit is contained in:
Vladimir Druzhinin 2023-04-13 22:02:19 +02:00 committed by GitHub
parent b7399ac7d3
commit 0463031e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -177,8 +177,10 @@ def hover(objName: str, timeout_sec: int = 5):
obj = squish.waitForObject(getattr(names, objName), 1000)
try:
squish.mouseMove(obj)
obj = squish.waitForObject(getattr(names, objName), 1000)
assert getattr(obj, 'hovered', True)
return True
except RuntimeError as err:
except (RuntimeError, AssertionError) as err:
# Object does not have a valid geometry
squish.snooze(1)
return False

View File

@ -5,4 +5,6 @@ collectStepDefinitions('./steps', '../shared/steps/', '../../global_shared/steps
def main():
testSettings.throwOnFailure = True
testSettings.logScreenshotOnError = True
testSettings.logScreenshotOnFail = True
runFeatureFile('test.feature')