diff --git a/test/e2e/configs/testpath.py b/test/e2e/configs/testpath.py index ada3f98688..6bddf1f565 100644 --- a/test/e2e/configs/testpath.py +++ b/test/e2e/configs/testpath.py @@ -18,6 +18,7 @@ RESULTS: SystemPath = TEMP / 'results' RUN: SystemPath = RESULTS / RUN_ID VP: SystemPath = ROOT / 'ext' / 'vp' TEST_FILES: SystemPath = ROOT / 'ext' / 'test_files' +TEST_IMAGES: SystemPath = ROOT / 'ext' / 'test_images' TEST_USER_DATA: SystemPath = ROOT / 'ext' / 'user_data' # Driver Directories diff --git a/test/e2e/ext/test_images/file_example_JPG_2500kB.jpg b/test/e2e/ext/test_images/file_example_JPG_2500kB.jpg new file mode 100644 index 0000000000..13f33592a6 Binary files /dev/null and b/test/e2e/ext/test_images/file_example_JPG_2500kB.jpg differ diff --git a/test/e2e/ext/test_images/file_example_PNG_3MB.png b/test/e2e/ext/test_images/file_example_PNG_3MB.png new file mode 100644 index 0000000000..55efaf8042 Binary files /dev/null and b/test/e2e/ext/test_images/file_example_PNG_3MB.png differ diff --git a/test/e2e/ext/test_images/file_example_TIFF_10MB.tiff b/test/e2e/ext/test_images/file_example_TIFF_10MB.tiff new file mode 100644 index 0000000000..c9d37ff14d Binary files /dev/null and b/test/e2e/ext/test_images/file_example_TIFF_10MB.tiff differ diff --git a/test/e2e/ext/test_images/sample1.heif b/test/e2e/ext/test_images/sample1.heif new file mode 100644 index 0000000000..7a68f35da7 Binary files /dev/null and b/test/e2e/ext/test_images/sample1.heif differ diff --git a/test/e2e/ext/test_images/sample_JPEG_1920×1280.jpeg b/test/e2e/ext/test_images/sample_JPEG_1920×1280.jpeg new file mode 100644 index 0000000000..be94d3c37f Binary files /dev/null and b/test/e2e/ext/test_images/sample_JPEG_1920×1280.jpeg differ diff --git a/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py b/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py index 8f40e603fb..0a3b0977fa 100755 --- a/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py +++ b/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py @@ -1,7 +1,9 @@ import logging import os +import pathlib import random import string +import glob import allure import pytest @@ -41,7 +43,8 @@ def keys_screen(main_window) -> KeysView: string.ascii_letters + string.digits + string.punctuation) for _ in range(10, 28)) ), - 'tv_signal.jpeg', + # TODO: add .tiff and .heif if https://github.com/status-im/status-desktop/issues/13077 is fixed + random.choice(['sample_JPEG_1920×1280.jpeg', 'file_example_PNG_3MB.png', 'file_example_JPG_2500kB.jpg']), 5, shift_image(0, 1000, 1000, 0)) ]) @@ -61,7 +64,7 @@ def test_generate_new_keys(main_window, keys_screen, user_name: str, password, u with step('Click plus button and add user picture'): if user_image is not None: - profile_picture_popup = profile_view.set_user_image(configs.testpath.TEST_FILES / user_image) + profile_picture_popup = profile_view.set_user_image(configs.testpath.TEST_IMAGES / user_image) profile_picture_popup.make_picture(zoom=zoom, shift=shift) assert not profile_view.get_error_message, \ f'Error message {profile_view.get_error_message} is present when it should not'