From b32bed058fa83e9496b01bb28d509a8fd62a4638 Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Fri, 9 Feb 2024 16:04:29 +0700 Subject: [PATCH] chore: skipped tests and added more asserts --- test/e2e/gui/components/wallet/send_popup.py | 10 +++++++--- .../tests/communities/test_communities_permissions.py | 1 + .../wallet: footer actions/test_send.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/e2e/gui/components/wallet/send_popup.py b/test/e2e/gui/components/wallet/send_popup.py index 4362a0bcf5..e8292a6ddd 100644 --- a/test/e2e/gui/components/wallet/send_popup.py +++ b/test/e2e/gui/components/wallet/send_popup.py @@ -32,8 +32,11 @@ class SendPopup(BasePopup): self._send_button = Button('send_StatusFlatButton') def _select_asset(self, asset: str): - item = wait_for_template(self._asset_list_item.real_name, asset, 'title') - driver.mouseClick(item) + for item in driver.findAllObjects(self._asset_list_item.real_name): + if str(getattr(item, 'title', '')) == asset: + driver.mouseClick(item) + else: + raise LookupError(f"Chosen asset didn't appear") def _open_tab(self, name: str): assets_tab = wait_for_template(self._tab_item_template.real_name, name, 'text') @@ -44,9 +47,10 @@ class SendPopup(BasePopup): self._open_tab('Assets') self._search_field.type_text(asset) self._select_asset(asset) + assert driver.waitFor(lambda: self._amount_text_edit.is_visible, timeout_msec=6000) self._amount_text_edit.text = str(amount) self._ens_address_text_edit.type_text(address) - driver.waitFor(lambda: self._send_button.is_visible, timeout_msec=6000) + assert driver.waitFor(lambda: self._send_button.is_visible, timeout_msec=6000) self.click_send() @allure.step('Click send button') diff --git a/test/e2e/tests/communities/test_communities_permissions.py b/test/e2e/tests/communities/test_communities_permissions.py index bbd42d414a..d45ad0235e 100644 --- a/test/e2e/tests/communities/test_communities_permissions.py +++ b/test/e2e/tests/communities/test_communities_permissions.py @@ -29,6 +29,7 @@ pytestmark = marks pytest.param(True, 'Ether', 'Dai Stablecoin', '10', 'viewOnly', '#general', '10 ETH', '10 DAI', 'View only'), pytest.param(False, False, False, False, 'becomeAdmin', False, False, False, 'Become an admin') ]) +@pytest.mark.skip(reason="https://github.com/status-im/desktop-qa-automation/issues/495") def test_adding_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset, second_asset, amount, allowed_to: str, in_channel, asset_title, second_asset_title, allowed_to_title: str): main_screen.create_community(params) diff --git a/test/e2e/tests/wallet_main_screen/wallet: footer actions/test_send.py b/test/e2e/tests/wallet_main_screen/wallet: footer actions/test_send.py index 32b277f997..4e42145f5b 100644 --- a/test/e2e/tests/wallet_main_screen/wallet: footer actions/test_send.py +++ b/test/e2e/tests/wallet_main_screen/wallet: footer actions/test_send.py @@ -31,7 +31,7 @@ def keys_screen(main_window) -> KeysView: @pytest.mark.parametrize('receiver_account_address, amount, asset', [ pytest.param(constants.user.user_account_one.status_address, 0, 'Ether') ]) -@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12987") +@pytest.mark.skip(reason="https://github.com/status-im/status-desktop/issues/12987") def test_wallet_send_0_eth(keys_screen, main_window, user_account, receiver_account_address, amount, asset): with step('Open import seed phrase view and enter seed phrase'): input_view = keys_screen.open_import_seed_phrase_view().open_seed_phrase_input_view()