Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting typing status #897

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

PIG208
Copy link
Member

@PIG208 PIG208 commented Aug 20, 2024

Follow-up to and stacked on top of #888

UserSettingName has been moved to another file.

Signed-off-by: Zixuan James Li <[email protected]>
This is not prohibited by the server and we should not log expected
behaviors like this.

See:

  https://zulip.com/api/get-events#typing-start

Signed-off-by: Zixuan James Li <[email protected]>
An issue that exists prior to this change is that there can be unused
prepared responses when the test ends, but we don't have a way to detect
that. We can potentially do something like what testWidgets does with
pending timers.

Signed-off-by: Zixuan James Li <[email protected]>
@PIG208 PIG208 force-pushed the set-typing-2 branch 2 times, most recently from 9401ef0 to 8cf2d81 Compare August 20, 2024 23:06
Signed-off-by: Zixuan James Li <[email protected]>
The stopwatch gets replaced with a testable stopwatch from clock/clock
in tests. We need to for testability of stopwatches with fake async. The
"normal" stopwatch gets used when not testing.

This implementation was inspired by:

  https://github.com/flutter/flutter/pull/137381/commits/ bbdeabf74b8e9443f0156b4631d460f022ac598c

Signed-off-by: Zixuan James Li <[email protected]>
The debugEnable setup is borrowed from
debugEnableRegisterNotificationToken. This acts as a hook to temporarily
disable typing notifications in later widget tests.

The documentation and implementation are based on the web app:

  https://github.com/zulip/zulip/blob/52a9846cdf4abfbe937a94559690d508e95f4065/web/shared/src/typing_status.ts

Signed-off-by: Zixuan James Li <[email protected]>
@PIG208 PIG208 linked an issue Aug 29, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set "typing" status
1 participant