feat: dictate replies from mobile Search preview (Closes #953)
This commit is contained in:
1 parent
51710972eb
commit
d63166b581
4 files changed
+50
No files matched your search
@@ -185,3 +185,29 @@ def test_all_mobile_conversation_composers_ship_accessible_voice_review_controls
|
||||
assert "issueVoiceReply.cancel();" in dashboard
|
||||
assert "pullVoiceReply.cancel();" in dashboard
|
||||
assert "updateVoiceReply.cancel();" in dashboard
|
||||
|
||||
|
||||
def test_mobile_search_reply_ships_target_scoped_voice_review_and_cancels_on_close():
|
||||
html = (FRONTEND / "index.html").read_text()
|
||||
css = (FRONTEND / "dashboard.css").read_text()
|
||||
dashboard = (FRONTEND / "dashboard.js").read_text()
|
||||
|
||||
for control in (
|
||||
"voice-search-reply",
|
||||
"start-voice-search-reply",
|
||||
"stop-voice-search-reply",
|
||||
"voice-search-reply-review",
|
||||
"voice-search-reply-transcript",
|
||||
"append-voice-search-reply",
|
||||
"replace-with-voice-search-reply",
|
||||
"discard-voice-search-reply",
|
||||
"voice-search-reply-status",
|
||||
):
|
||||
assert f'id="{control}"' in html
|
||||
|
||||
assert 'for="voice-search-reply-transcript"' in html
|
||||
assert "mountConversationVoice('search-reply', '#search-preview-reply')" in dashboard
|
||||
assert "searchVoiceReply.open(searchConversationVoiceTarget(state.item))" in dashboard
|
||||
assert "searchVoiceReply.cancel();" in dashboard
|
||||
assert ".search-preview-reply .voice-conversation-controls button" in css
|
||||
assert "min-height:44px" in css
|
||||
Reference in new issue
Block a user