1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

Remove obsolete planSelectionStepTitleOverride tests

This commit is contained in:
Stephon Brown
2026-02-04 15:26:39 -05:00
parent c73c69705b
commit 3864308c6d

View File

@@ -171,7 +171,6 @@ describe("PremiumOrgUpgradeDialogComponent", () => {
expect(component["step"]()).toBe(PremiumOrgUpgradeDialogStep.PlanSelection);
expect(component["selectedPlan"]()).toBeNull();
expect(component["account"]()).toEqual(mockAccount);
expect(component["planSelectionStepTitleOverride"]()).toBeNull();
});
it("should initialize with custom initial step", async () => {
@@ -187,25 +186,6 @@ describe("PremiumOrgUpgradeDialogComponent", () => {
expect(customComponent["selectedPlan"]()).toBe("teams");
});
describe("custom dialog title", () => {
it("should use null as default when no override is provided", () => {
expect(component["planSelectionStepTitleOverride"]()).toBeNull();
});
it("should use custom title when provided in dialog config", async () => {
const customDialogData: PremiumOrgUpgradeDialogParams = {
account: mockAccount,
initialStep: PremiumOrgUpgradeDialogStep.PlanSelection,
selectedPlan: null,
planSelectionStepTitleOverride: "upgradeYourPlan",
};
const { component: customComponent } = await createComponentWithDialogData(customDialogData);
expect(customComponent["planSelectionStepTitleOverride"]()).toBe("upgradeYourPlan");
});
});
describe("onPlanSelected", () => {
it("should set selected plan and move to payment step", () => {
component["onPlanSelected"]("teams" as BusinessSubscriptionPricingTierId);