From 1b6fc3b266692ac5d305a7a9091c1fa2a6fe724d Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 10 Aug 2022 09:14:01 +0200 Subject: [PATCH] test(@wallet): fix test on CI --- ci/Jenkinsfile.uitests | 1 + .../ui-test/src/screens/StatusWalletScreen.py | 3 +- .../suite_status/tst_wallet/test.feature | 94 +++++++++---------- 3 files changed, 49 insertions(+), 49 deletions(-) diff --git a/ci/Jenkinsfile.uitests b/ci/Jenkinsfile.uitests index b1c02bb28f..c1dff4694a 100644 --- a/ci/Jenkinsfile.uitests +++ b/ci/Jenkinsfile.uitests @@ -68,6 +68,7 @@ pipeline { $class: 'Xvfb', autoDisplayName: true, parallelBuild: true, + screen: '2560x1440x24', ]) { script { def res = squish([ diff --git a/test/ui-test/src/screens/StatusWalletScreen.py b/test/ui-test/src/screens/StatusWalletScreen.py index 527a2af971..ff79fe2f82 100644 --- a/test/ui-test/src/screens/StatusWalletScreen.py +++ b/test/ui-test/src/screens/StatusWalletScreen.py @@ -52,7 +52,6 @@ class AddAccountPopup(Enum): ADD_ACCOUNT_BUTTON: str = "mainWallet_Add_Account_Popup_Footer_Add_Account" SEED_PHRASE_INPUT_TEMPLATE: str = "mainWindow_Add_Account_Popup_Seed_Phrase_" - class StatusWalletScreen: def accept_signing_phrase(self): @@ -90,7 +89,7 @@ class StatusWalletScreen: type(AddAccountPopup.PASSWORD_INPUT.value, password) type(AddAccountPopup.ACCOUNT_NAME_INPUT.value, account_name) - + click_obj_by_name(AddAccountPopup.ADVANCE_SECTION.value) click_obj_by_name(AddAccountPopup.TYPE_SELECTOR.value) time.sleep(1) diff --git a/test/ui-test/testSuites/suite_status/tst_wallet/test.feature b/test/ui-test/testSuites/suite_status/tst_wallet/test.feature index e89af1b4c9..02d96093df 100644 --- a/test/ui-test/testSuites/suite_status/tst_wallet/test.feature +++ b/test/ui-test/testSuites/suite_status/tst_wallet/test.feature @@ -10,14 +10,14 @@ Feature: Status Desktop Wallet When the user activates wallet and opens the wallet section When the user accepts the signing phrase -# Scenario Outline: User adds a watch only account -# When the user adds watch only account with and
-# Then the new account is added -# -# Examples: -# | account_name | address | -# | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | -# | two | 0xf51ba8631618b9b3521ff4eb9adfd8a837455226 | + Scenario Outline: User adds a watch only account + When the user adds watch only account with and
+ Then the new account is added + + Examples: + | account_name | address | + | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | + | two | 0xf51ba8631618b9b3521ff4eb9adfd8a837455226 | Scenario Outline: User generates a new account from wallet @@ -29,21 +29,21 @@ Feature: Status Desktop Wallet | one | | two | -# Scenario Outline: User imports a private key -# When the user imports a private key with and TesTEr16843/!@00 and -# Then the new account is added -# -# Examples: -# | account_name | private_key | -# | one | 8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f | + Scenario Outline: User imports a private key + When the user imports a private key with and TesTEr16843/!@00 and + Then the new account is added -# Scenario Outline: User imports a seed phrase -# When the user imports a seed phrase with and TesTEr16843/!@00 and -# Then the new account is added -# -# Examples: -# | account_name | seed_phrase | -# | one | indoor dish desk flag debris potato excuse depart ticket judge file exit | + Examples: + | account_name | private_key | + | one | 8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f | + + Scenario Outline: User imports a seed phrase + When the user imports a seed phrase with and TesTEr16843/!@00 and + Then the new account is added + + Examples: + | account_name | seed_phrase | + | one | indoor dish desk flag debris potato excuse depart ticket judge file exit | Scenario Outline: User deletes a generated account When the user generates a new account with and TesTEr16843/!@00 @@ -54,28 +54,28 @@ Feature: Status Desktop Wallet | account_name | | one | -# Scenario Outline: User adds a saved address -# When the user adds a saved address named and address
-# Then the name is in the list of saved addresses -# -# Examples: -# | name | address | -# | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | -# -# Scenario Outline: User can edit a saved address -# When the user adds a saved address named and address
-# And the user edits a saved address with name to -# Then the name is in the list of saved addresses -# -# Examples: -# | name | address | new_name | -# | bar | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | foo | -# -# Scenario Outline: User can delete a saved address -# When the user adds a saved address named and address
-# And the user deletes the saved address with name -# Then the name is not in the list of saved addresses -# -# Examples: -# | name | address | -# | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | \ No newline at end of file + # Scenario Outline: User adds a saved address + # When the user adds a saved address named and address
+ # Then the name is in the list of saved addresses + + # Examples: + # | name | address | + # | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | + + # Scenario Outline: User can edit a saved address + # When the user adds a saved address named and address
+ # And the user edits a saved address with name to + # Then the name is in the list of saved addresses + + # Examples: + # | name | address | new_name | + # | bar | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | foo | + + # Scenario Outline: User can delete a saved address + # When the user adds a saved address named and address
+ # And the user deletes the saved address with name + # Then the name is not in the list of saved addresses + + # Examples: + # | name | address | + # | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | \ No newline at end of file