Label Business Pro Lite plans as Business Premium (#40301)

## What changed

- Show `SelfServeBusinessProLite` as `Business Premium` in TUI account displays instead of grouping it under `Business`.
- Update the display-name and app-server session tests for the new label.

GitOrigin-RevId: aac5c7abe9543f5d49f4e9dc9cbe20e7e3b41e5b
This commit is contained in:
Eric Traut
2026-08-24 00:48:31 +00:00
committed by copyberry
parent a70974c1a0
commit 0533f96c44
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -3712,7 +3712,7 @@ mod tests {
Some(StatusAccountDisplay::ChatGpt {
email: None,
plan: Some(ref plan),
}) if plan == "Business"
}) if plan == "Business Premium"
));
}
}
+6 -1
View File
@@ -99,6 +99,8 @@ pub(crate) fn compose_account_display(
pub(crate) fn plan_type_display_name(plan_type: PlanType) -> String {
if plan_type == PlanType::EnterpriseCbpAutomation {
"Enterprise (Automation)".to_string()
} else if plan_type == PlanType::SelfServeBusinessProLite {
"Business Premium".to_string()
} else if plan_type.is_team_like() {
"Business".to_string()
} else if plan_type.is_business_like() {
@@ -225,7 +227,6 @@ mod tests {
(PlanType::Pro, "Pro"),
(PlanType::ProLite, "Pro Lite"),
(PlanType::Team, "Business"),
(PlanType::SelfServeBusinessProLite, "Business"),
(PlanType::SelfServeBusinessUsageBased, "Business"),
(PlanType::Business, "Enterprise"),
(PlanType::EnterpriseCbpAutomation, "Enterprise (Automation)"),
@@ -238,6 +239,10 @@ mod tests {
for (plan_type, expected) in cases {
assert_eq!(plan_type_display_name(plan_type), expected);
}
insta::assert_snapshot!(
plan_type_display_name(PlanType::SelfServeBusinessProLite),
@"Business Premium"
);
insta::assert_snapshot!(
"education_plan_display_names",
[PlanType::Edu, PlanType::EduPlus, PlanType::EduPro]