onboarding: Replace 'edit profile' with 'profile' in bot command list.

And change the tests accordingly.
This commit is contained in:
Palash 2021-12-02 12:45:17 +05:30 committed by Tim Abbott
parent 0a2649d9fe
commit a444560684
2 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ def send_initial_pms(user: UserProfile) -> None:
def bot_commands(is_initial_pm: bool = False) -> str:
commands = [
"apps",
"edit profile",
"profile",
"theme",
"streams",
"topics",

View File

@ -142,7 +142,7 @@ class TutorialTests(ZulipTestCase):
self.send_personal_message(user, bot, content)
expected_response = (
"Here are a few messages I understand: "
"`apps`, `edit profile`, `theme`, "
"`apps`, `profile`, `theme`, "
"`streams`, `topics`, `message formatting`, `keyboard shortcuts`.\n\n"
"Check out our [Getting started guide](/help/getting-started-with-zulip), "
"or browse the [Help center](/help/) to learn more!"
@ -158,7 +158,7 @@ class TutorialTests(ZulipTestCase):
self.send_personal_message(user, bot, content)
expected_response = (
"Im sorry, I did not understand your message. Please try one of the following commands: "
"`apps`, `edit profile`, `theme`, `streams`, "
"`apps`, `profile`, `theme`, `streams`, "
"`topics`, `message formatting`, `keyboard shortcuts`."
)
self.assertEqual(most_recent_message(user).content, expected_response)