chore: remove verifications for toast messages
This commit is contained in:
parent
99716937f4
commit
872ddf45dd
|
@ -33,7 +33,7 @@ pytestmark = marks
|
||||||
pytest.param(True, 'Ether', 'Dai Stablecoin', '10', 'viewOnly', '#general', '10 ETH', '10 DAI', 'View only'),
|
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.param(False, False, False, False, 'becomeAdmin', False, False, False, 'Become an admin')
|
||||||
])
|
])
|
||||||
#@pytest.mark.xfail(reason='https://github.com/status-im/status-desktop/issues/13621')
|
# TODO: (reason='https://github.com/status-im/status-desktop/issues/13621')
|
||||||
def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset,
|
def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset,
|
||||||
second_asset, amount, allowed_to: str, in_channel, asset_title,
|
second_asset, amount, allowed_to: str, in_channel, asset_title,
|
||||||
second_asset_title, allowed_to_title: str):
|
second_asset_title, allowed_to_title: str):
|
||||||
|
@ -55,12 +55,13 @@ def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkb
|
||||||
permissions_settings.set_in(in_channel)
|
permissions_settings.set_in(in_channel)
|
||||||
permissions_settings.create_permission()
|
permissions_settings.create_permission()
|
||||||
|
|
||||||
with step('Check toast message for permission creation'):
|
# TODO: https://github.com/status-im/desktop-qa-automation/issues/547
|
||||||
assert len(ToastMessage().get_toast_messages) == 1, \
|
# with step('Check toast message for permission creation'):
|
||||||
f"Multiple toast messages appeared"
|
# assert len(ToastMessage().get_toast_messages) == 1, \
|
||||||
message = ToastMessage().get_toast_messages[0]
|
# f"Multiple toast messages appeared"
|
||||||
assert message == ToastMessages.CREATE_PERMISSION_TOAST.value, \
|
# message = ToastMessage().get_toast_messages[0]
|
||||||
f"Toast message is incorrect, current message is {message}"
|
# assert message == ToastMessages.CREATE_PERMISSION_TOAST.value, \
|
||||||
|
# f"Toast message is incorrect, current message is {message}"
|
||||||
|
|
||||||
with step('Created permission is displayed on permission page'):
|
with step('Created permission is displayed on permission page'):
|
||||||
if asset_title is not False:
|
if asset_title is not False:
|
||||||
|
@ -108,10 +109,11 @@ def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkb
|
||||||
assert driver.waitFor(lambda: permissions_intro_view.is_hide_icon_visible,
|
assert driver.waitFor(lambda: permissions_intro_view.is_hide_icon_visible,
|
||||||
configs.timeouts.UI_LOAD_TIMEOUT_MSEC)
|
configs.timeouts.UI_LOAD_TIMEOUT_MSEC)
|
||||||
|
|
||||||
with step('Check toast message for edited permission'):
|
# TODO: https://github.com/status-im/desktop-qa-automation/issues/547
|
||||||
messages = ToastMessage().get_toast_messages
|
# with step('Check toast message for edited permission'):
|
||||||
assert ToastMessages.UPDATE_PERMISSION_TOAST.value in messages, \
|
# messages = ToastMessage().get_toast_messages
|
||||||
f"Toast message is incorrect, current message is {message}"
|
# assert ToastMessages.UPDATE_PERMISSION_TOAST.value in messages, \
|
||||||
|
# f"Toast message is incorrect, current message is {message}"
|
||||||
|
|
||||||
with step('Delete permission'):
|
with step('Delete permission'):
|
||||||
permissions_intro_view.click_delete_permission()
|
permissions_intro_view.click_delete_permission()
|
||||||
|
@ -120,7 +122,8 @@ def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkb
|
||||||
with step('Verify that permission was deleted'):
|
with step('Verify that permission was deleted'):
|
||||||
assert driver.waitFor(lambda: PermissionsIntroView().is_visible)
|
assert driver.waitFor(lambda: PermissionsIntroView().is_visible)
|
||||||
|
|
||||||
with step('Check toast message for deleted permission'):
|
# TODO: https://github.com/status-im/desktop-qa-automation/issues/547
|
||||||
messages = ToastMessage().get_toast_messages
|
# with step('Check toast message for deleted permission'):
|
||||||
assert ToastMessages.DELETE_PERMISSION_TOAST.value in messages, \
|
# messages = ToastMessage().get_toast_messages
|
||||||
f"Toast message is incorrect, current message is {message}"
|
# assert ToastMessages.DELETE_PERMISSION_TOAST.value in messages, \
|
||||||
|
# f"Toast message is incorrect, current message is {message}"
|
||||||
|
|
Loading…
Reference in New Issue