From e8648978630604e944be41ae82f6de10a4dc2f20 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 11 Oct 2024 10:03:11 +0300 Subject: [PATCH] chore: filling in tags for community is now required --- test/e2e/gui/main_window.py | 7 ++++--- .../test_community_category_add_edit_delete.py | 3 ++- .../crtitical_tests_prs/test_community_edit_community.py | 3 ++- ...test_community_permissions_add_edit_delete_duplicate.py | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/test/e2e/gui/main_window.py b/test/e2e/gui/main_window.py index 4069e4cecb..575af0a199 100644 --- a/test/e2e/gui/main_window.py +++ b/test/e2e/gui/main_window.py @@ -6,7 +6,7 @@ import allure import configs import driver -from constants import UserAccount, RandomUser +from constants import UserAccount, RandomUser, ColorCodes from gui.components.community.invite_contacts import InviteContactsPopup from gui.components.onboarding.share_usage_data_popup import ShareUsageDataPopup from gui.components.context_menu import ContextMenu @@ -213,10 +213,11 @@ class MainWindow(Window): return self.sign_up(user_account) @allure.step('Create community') - def create_community(self, name, description, intro, outro, logo, banner) -> CommunityScreen: + def create_community(self, name, description, intro, outro, logo, banner, tags_to_set, tags) -> CommunityScreen: communities_portal = self.left_panel.open_communities_portal() create_community_form = communities_portal.open_create_community_popup() - app_screen = create_community_form.create_simple_community(name, description, intro, outro, logo, banner) + color = ColorCodes.ORANGE.value + app_screen = create_community_form.create_community(name, description, intro, outro, logo, banner, color, tags_to_set, tags) return app_screen @allure.step('Wait for notification and get text') diff --git a/test/e2e/tests/crtitical_tests_prs/test_community_category_add_edit_delete.py b/test/e2e/tests/crtitical_tests_prs/test_community_category_add_edit_delete.py index c936a02e85..01a3553e91 100644 --- a/test/e2e/tests/crtitical_tests_prs/test_community_category_add_edit_delete.py +++ b/test/e2e/tests/crtitical_tests_prs/test_community_category_add_edit_delete.py @@ -31,7 +31,8 @@ def test_create_edit_remove_community_category(main_screen: MainWindow, category community_params = constants.community_params main_screen.create_community(community_params['name'], community_params['description'], community_params['intro'], community_params['outro'], - community_params['logo']['fp'], community_params['banner']['fp']) + community_params['logo']['fp'], community_params['banner']['fp'], + ['Activism', 'Art'], constants.community_tags[:2]) community_screen = main_screen.left_panel.select_community(community_params['name']) with step('Create community category and verify that it displays correctly'): diff --git a/test/e2e/tests/crtitical_tests_prs/test_community_edit_community.py b/test/e2e/tests/crtitical_tests_prs/test_community_edit_community.py index 5073929591..ca272e4173 100644 --- a/test/e2e/tests/crtitical_tests_prs/test_community_edit_community.py +++ b/test/e2e/tests/crtitical_tests_prs/test_community_edit_community.py @@ -32,7 +32,8 @@ def test_edit_community(main_screen: MainWindow, params): community_params = constants.community_params main_screen.create_community(community_params['name'], community_params['description'], community_params['intro'], community_params['outro'], - community_params['logo']['fp'], community_params['banner']['fp']) + community_params['logo']['fp'], community_params['banner']['fp'], + ['Activism', 'Art'], constants.community_tags[:2]) with step('Edit community'): community_screen = main_screen.left_panel.select_community(community_params['name']) diff --git a/test/e2e/tests/crtitical_tests_prs/test_community_permissions_add_edit_delete_duplicate.py b/test/e2e/tests/crtitical_tests_prs/test_community_permissions_add_edit_delete_duplicate.py index 3cc3eaef7d..0be923e4ac 100644 --- a/test/e2e/tests/crtitical_tests_prs/test_community_permissions_add_edit_delete_duplicate.py +++ b/test/e2e/tests/crtitical_tests_prs/test_community_permissions_add_edit_delete_duplicate.py @@ -30,7 +30,8 @@ def test_add_edit_remove_duplicate_permissions(main_screen: MainWindow, params): main_screen.create_community(params['name'], params['description'], params['intro'], params['outro'], - params['logo']['fp'], params['banner']['fp']) + params['logo']['fp'], params['banner']['fp'], + ['Activism', 'Art'], constants.community_tags[:2]) permission_set = random.choice(permission_data)