chore: no colors validation for channels test

This commit is contained in:
Anastasiya Semiankevich 2024-04-30 15:25:48 +03:00 committed by Anastasiya
parent d06cfd342a
commit 45fc6ec608
2 changed files with 4 additions and 8 deletions

View File

@ -47,7 +47,7 @@ class CommunityScreen(QObject):
@allure.step('Verify channel')
def verify_channel(
self, name: str, description: str, emoji, color: str):
self, name: str, description: str, emoji):
with step('Channel is correct in channels list'):
channel = self.left_panel.get_channel_parameters(name)
assert channel.name == name
@ -57,13 +57,11 @@ class CommunityScreen(QObject):
assert self.tool_bar.channel_description == description
if emoji is not None:
assert self.tool_bar.channel_emoji == emoji
assert self.tool_bar.channel_color == color
with step('Verify channel in chat'):
assert self.chat.channel_name == name
if emoji is not None:
assert self.chat.channel_emoji == emoji
assert self.chat.channel_color == color
@allure.step('Create category')
def create_category(self, name: str, general_checkbox: bool):

View File

@ -19,7 +19,7 @@ pytestmark = marks
'channel_name, channel_description, channel_emoji, channel_emoji_image, channel_color, new_channel_name, '
'new_channel_description, new_channel_emoji',
[('Channel', 'Description', 'sunglasses', None, '#4360df', 'New-channel', 'New channel description', 'thumbsup')])
# @pytest.mark.critical TODO: https://github.com/status-im/desktop-qa-automation/issues/535
# @pytest.mark.critical TODO: https://github.com/status-im/desktop-qa-automation/issues/658
def test_create_edit_remove_community_channel(main_screen, channel_name, channel_description, channel_emoji, channel_emoji_image,
channel_color, new_channel_name, new_channel_description, new_channel_emoji):
with step('Create simple community'):
@ -33,8 +33,7 @@ def test_create_edit_remove_community_channel(main_screen, channel_name, channel
community_screen.verify_channel(
'general',
'General channel for the community',
None,
channel_color
None
)
with step('Create new channel for recently created community'):
@ -44,8 +43,7 @@ def test_create_edit_remove_community_channel(main_screen, channel_name, channel
community_screen.verify_channel(
channel_name,
channel_description,
channel_emoji_image,
channel_color
channel_emoji_image
)
with step('Edit channel'):