Skip to content

Commit

Permalink
chore: fix community tests to have tag filled in
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig committed Oct 14, 2024
1 parent e864897 commit 7a278c7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion test/e2e/tests/communities/test_communities_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def test_clicking_community_category(main_screen: MainWindow, category_name, gen
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['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'):
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/tests/communities/test_communities_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def test_create_edit_remove_community_channel(main_screen, channel_name, channel
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('Verify General channel is present for recently created community'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def test_add_5_member_role_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])

with step('Open add new permission page'):
community_screen = main_screen.left_panel.select_community(params['name'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def test_join_community_and_pin_unpin_message(multiple_instances):
settings.left_panel.open_advanced_settings().enable_creation_of_communities()
community = 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.left_panel.invite_people_to_community([user_one.name], 'Message')
main_screen.hide()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def test_communities_send_accept_decline_request_remove_contact_from_profile(mul

community = 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.left_panel.invite_people_to_community([user_one.name], 'Message')
community.left_panel.invite_people_to_community([user_three.name], 'Message')
main_screen.hide()
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/tests/communities/test_communities_share_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def test_share_community_link(main_screen: MainWindow):
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('Copy community link and verify that it does not give 404 error'):
community_link = main_screen.left_panel.open_community_context_menu(
community_params['name']).select_invite_people().copy_community_link()
Expand Down

0 comments on commit 7a278c7

Please sign in to comment.