Skip to content

Commit

Permalink
test_core: Add tests for show_typing_notification.
Browse files Browse the repository at this point in the history
Add diffrernt cases of footer notification.Earlier
just one test was presnt as not much scenarios were
possible.
  • Loading branch information
Subhasish-Behera committed Oct 27, 2023
1 parent 3756fe7 commit 81e2509
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/core/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,18 @@ def test_maximum_popup_dimensions(
[
case({4: "hamlet@zulip.com"}, id="in_pm_narrow_with_sender_typing:start"),
case({}, id="in_pm_narrow_with_sender_typing:stop"),
case(
{1: "iago@zulip.com", 4: "hamlet@zulip.com"},
id="in_group_pm_narrow_1_member_active",
),
case(
{1: "iago@zulip.com", 2: "verona@zulip.com"},
id="in_group_pm_where_3_members_active",
),
case(
{1: "iago@zulip.com", 2: "verona@zulip.com", 3: "fan@zulip.com"},
id="in_group_pm_where_4_members_active",
),
],
)
def test_show_typing_notification(
Expand Down

0 comments on commit 81e2509

Please sign in to comment.