chore(@e2e): fix assets paths

This commit is contained in:
Anastasiya Semenkevich 2024-10-21 15:53:55 +03:00 committed by Lukáš Tinkl
parent 76af3a469b
commit 692e8df49e
2 changed files with 20 additions and 20 deletions

View File

@ -1,18 +1,18 @@
# Images paths # Images paths
PERMISSION_WELCOME_IMAGE_PATH = '/imports/assets/png/community/permissions2_3.png' PERMISSION_WELCOME_IMAGE_PATH = '/assets/png/community/permissions2_3.png'
AIRDROPS_WELCOME_IMAGE_PATH = '/imports/assets/png/community/airdrops8_1.png' AIRDROPS_WELCOME_IMAGE_PATH = '/assets/png/community/airdrops8_1.png'
TOKENS_WELCOME_IMAGE_PATH = '/imports/assets/png/community/mint2_1.png' TOKENS_WELCOME_IMAGE_PATH = '/assets/png/community/mint2_1.png'
PLUG_IN_KEYCARD_IMAGE_PATH = '/imports/assets/png/keycard/empty-reader.png' PLUG_IN_KEYCARD_IMAGE_PATH = '/assets/png/keycard/empty-reader.png'
INSERT_KEYCARD_IMAGE_PATH = '/imports/assets/png/keycard/card_insert/img-15.png' INSERT_KEYCARD_IMAGE_PATH = '/assets/png/keycard/card_insert/img-15.png'
EMPTY_KEYCARD_IMAGE_PATH = '/imports/assets/png/keycard/card-empty.png' EMPTY_KEYCARD_IMAGE_PATH = '/assets/png/keycard/card-empty.png'
KEYCARD_INSERTED_IMAGE_PATH = '/imports/assets/png/keycard/card-inserted.png' KEYCARD_INSERTED_IMAGE_PATH = '/assets/png/keycard/card-inserted.png'
CHOOSE_KEYCARD_PIN_IMAGE_PATH = '/imports/assets/png/keycard/enter-pin-0.png' CHOOSE_KEYCARD_PIN_IMAGE_PATH = '/assets/png/keycard/enter-pin-0.png'
KEYCARD_SUCCESS_IMAGE_PATH = '/imports/assets/png/keycard/strong_success/img-20.png' KEYCARD_SUCCESS_IMAGE_PATH = '/assets/png/keycard/strong_success/img-20.png'
KEYCARD_RECOGNIZED_IMAGE_PATH = '/imports/assets/png/keycard/success/img-13.png' KEYCARD_RECOGNIZED_IMAGE_PATH = '/assets/png/keycard/success/img-13.png'
KEYCARD_ERROR_IMAGE_PATH = '/imports/assets/png/keycard/plain-error.png' KEYCARD_ERROR_IMAGE_PATH = '/assets/png/keycard/plain-error.png'
HEART_EMOJI_PATH = '/imports/assets/icons/emojiReactions/heart.svg' HEART_EMOJI_PATH = '/assets/img/icons/emojiReactions/heart.svg'
THUMBSUP_EMOJI_PATH = '/imports/assets/icons/emojiReactions/thumbsUp.svg' THUMBSUP_EMOJI_PATH = '/assets/img/icons/emojiReactions/thumbsUp.svg'
THUMBSDOWN_EMOJI_PATH = '/imports/assets/icons/emojiReactions/thumbsDown.svg' THUMBSDOWN_EMOJI_PATH = '/assets/img/icons/emojiReactions/thumbsDown.svg'
LAUGHING_EMOJI_PATH = '/imports/assets/icons/emojiReactions/laughing.svg' LAUGHING_EMOJI_PATH = '/assets/img/icons/emojiReactions/laughing.svg'
SAD_EMOJI_PATH = '/imports/assets/icons/emojiReactions/sad.svg' SAD_EMOJI_PATH = '/assets/img/icons/emojiReactions/sad.svg'
ANGRY_EMOJI_PATH = '/imports/assets/icons/emojiReactions/angry.svg' ANGRY_EMOJI_PATH = '/assets/img/icons/emojiReactions/angry.svg'

View File

@ -38,7 +38,7 @@ def test_manage_community_screens_overview(main_screen: MainWindow):
assert airdrops_screen.is_new_airdrop_button_present is True, \ assert airdrops_screen.is_new_airdrop_button_present is True, \
f'New airdrop button should be disabled by default' f'New airdrop button should be disabled by default'
with step('Airdrops welcome image source path is correct'): with step('Airdrops welcome image source path is correct'):
assert AIRDROPS_WELCOME_IMAGE_PATH == airdrops_screen.airdrops_welcome_image_path assert AIRDROPS_WELCOME_IMAGE_PATH == str(airdrops_screen.airdrops_welcome_image_path)
with step('Airdrops welcome title is correct'): with step('Airdrops welcome title is correct'):
assert airdrops_screen.airdrops_welcome_title == AirdropsElements.WELCOME_TITLE.value assert airdrops_screen.airdrops_welcome_title == AirdropsElements.WELCOME_TITLE.value
with step('Airdrops welcome subtitle is correct'): with step('Airdrops welcome subtitle is correct'):
@ -60,7 +60,7 @@ def test_manage_community_screens_overview(main_screen: MainWindow):
assert tokens_screen.is_mint_token_button_present is True, \ assert tokens_screen.is_mint_token_button_present is True, \
f'Mint token button should be present' f'Mint token button should be present'
with step('Tokens welcome image path is correct'): with step('Tokens welcome image path is correct'):
assert TOKENS_WELCOME_IMAGE_PATH == tokens_screen.tokens_welcome_image_path assert TOKENS_WELCOME_IMAGE_PATH == str(tokens_screen.tokens_welcome_image_path)
with step('Tokens welcome title is correct'): with step('Tokens welcome title is correct'):
assert tokens_screen.tokens_welcome_title == TokensElements.WELCOME_TITLE.value assert tokens_screen.tokens_welcome_title == TokensElements.WELCOME_TITLE.value
with step('Tokens welcome subtitle is correct'): with step('Tokens welcome subtitle is correct'):
@ -83,7 +83,7 @@ def test_manage_community_screens_overview(main_screen: MainWindow):
assert permissions_settings.is_add_new_permission_button_present is True, \ assert permissions_settings.is_add_new_permission_button_present is True, \
f'Add new permission button should be visible' f'Add new permission button should be visible'
with step('Permission welcome image source path is correct'): with step('Permission welcome image source path is correct'):
assert PERMISSION_WELCOME_IMAGE_PATH == permissions_settings.permission_welcome_image_source assert PERMISSION_WELCOME_IMAGE_PATH == str(permissions_settings.permission_welcome_image_source)
with step('Permission welcome title is correct'): with step('Permission welcome title is correct'):
assert permissions_settings.permission_welcome_title == PermissionsElements.WELCOME_TITLE.value assert permissions_settings.permission_welcome_title == PermissionsElements.WELCOME_TITLE.value
with step('Permission welcome subtitle is correct'): with step('Permission welcome subtitle is correct'):