chore: no colors validation for channels test
This commit is contained in:
parent
d06cfd342a
commit
45fc6ec608
|
@ -47,7 +47,7 @@ class CommunityScreen(QObject):
|
||||||
|
|
||||||
@allure.step('Verify channel')
|
@allure.step('Verify channel')
|
||||||
def 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'):
|
with step('Channel is correct in channels list'):
|
||||||
channel = self.left_panel.get_channel_parameters(name)
|
channel = self.left_panel.get_channel_parameters(name)
|
||||||
assert channel.name == name
|
assert channel.name == name
|
||||||
|
@ -57,13 +57,11 @@ class CommunityScreen(QObject):
|
||||||
assert self.tool_bar.channel_description == description
|
assert self.tool_bar.channel_description == description
|
||||||
if emoji is not None:
|
if emoji is not None:
|
||||||
assert self.tool_bar.channel_emoji == emoji
|
assert self.tool_bar.channel_emoji == emoji
|
||||||
assert self.tool_bar.channel_color == color
|
|
||||||
|
|
||||||
with step('Verify channel in chat'):
|
with step('Verify channel in chat'):
|
||||||
assert self.chat.channel_name == name
|
assert self.chat.channel_name == name
|
||||||
if emoji is not None:
|
if emoji is not None:
|
||||||
assert self.chat.channel_emoji == emoji
|
assert self.chat.channel_emoji == emoji
|
||||||
assert self.chat.channel_color == color
|
|
||||||
|
|
||||||
@allure.step('Create category')
|
@allure.step('Create category')
|
||||||
def create_category(self, name: str, general_checkbox: bool):
|
def create_category(self, name: str, general_checkbox: bool):
|
||||||
|
|
|
@ -19,7 +19,7 @@ pytestmark = marks
|
||||||
'channel_name, channel_description, channel_emoji, channel_emoji_image, channel_color, new_channel_name, '
|
'channel_name, channel_description, channel_emoji, channel_emoji_image, channel_color, new_channel_name, '
|
||||||
'new_channel_description, new_channel_emoji',
|
'new_channel_description, new_channel_emoji',
|
||||||
[('Channel', 'Description', 'sunglasses', None, '#4360df', 'New-channel', 'New channel description', 'thumbsup')])
|
[('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,
|
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):
|
channel_color, new_channel_name, new_channel_description, new_channel_emoji):
|
||||||
with step('Create simple community'):
|
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(
|
community_screen.verify_channel(
|
||||||
'general',
|
'general',
|
||||||
'General channel for the community',
|
'General channel for the community',
|
||||||
None,
|
None
|
||||||
channel_color
|
|
||||||
)
|
)
|
||||||
|
|
||||||
with step('Create new channel for recently created community'):
|
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(
|
community_screen.verify_channel(
|
||||||
channel_name,
|
channel_name,
|
||||||
channel_description,
|
channel_description,
|
||||||
channel_emoji_image,
|
channel_emoji_image
|
||||||
channel_color
|
|
||||||
)
|
)
|
||||||
|
|
||||||
with step('Edit channel'):
|
with step('Edit channel'):
|
||||||
|
|
Loading…
Reference in New Issue