Skip to content

Commit cc7d000

Browse files
committed
test: browser login integ tests with entitlements more coverage
1 parent 4db5fd5 commit cc7d000

File tree

4 files changed

+115
-143
lines changed

4 files changed

+115
-143
lines changed

src/services/html/login-popup.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<div class="profile-popup">
1+
<div class="profile-popup login-profile-popup">
22
<div class="popup-header">
33
<h1 class="popup-title">{{Strings.PROFILE_POP_TITLE}}</h1>
44
{{#trialInfo}}
55
<div class="trial-plan-info">
66
<span class="phoenix-pro-title-plain">
7-
<span class="pro-plan-name">{{planName}}</span>
7+
<span class="pro-plan-name user-plan-name">{{planName}}</span>
88
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
99
</span>
1010
</div>

src/services/html/profile-popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="profile-popup">
1+
<div class="profile-popup user-profile-popup">
22
<div class="popup-header">
33
<div class="user-profile-header">
44
<div class="user-avatar" style="background-color: {{avatarColor}};">

src/services/profile-menu.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ define(function (require, exports, module) {
170170
effectiveEntitlements.trialDaysRemaining);
171171
const trialInfoHtml = `<div class="trial-plan-info">
172172
<span class="phoenix-pro-title-plain">
173-
<span class="pro-plan-name">${planName}</span>
173+
<span class="pro-plan-name user-plan-name">${planName}</span>
174174
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
175175
</span>
176176
</div>`;
@@ -371,15 +371,15 @@ define(function (require, exports, module) {
371371
const planName = StringUtils.format(Strings.PROMO_PRO_TRIAL_DAYS_LEFT,
372372
entitlements.trialDaysRemaining);
373373
const proTitle = `<span class="phoenix-pro-title-plain">
374-
<span class="pro-plan-name">${planName}</span>
374+
<span class="pro-plan-name user-plan-name">${planName}</span>
375375
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
376376
</span>`;
377377
$planName.addClass('user-plan-paid').html(proTitle);
378378
$getProLink.removeClass('forced-hidden');
379379
} else {
380380
// For paid users: regular plan name with icon
381381
const proTitle = `<span class="phoenix-pro-title">
382-
<span class="pro-plan-name">${entitlements.plan.name}</span>
382+
<span class="pro-plan-name user-plan-name">${entitlements.plan.name}</span>
383383
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
384384
</span>`;
385385
$planName.addClass('user-plan-paid').html(proTitle);
@@ -591,6 +591,7 @@ define(function (require, exports, module) {
591591
_updateBranding(effectiveEntitlements);
592592
} else {
593593
console.log('Profile Menu: No active trial found');
594+
_updateBranding(null);
594595
}
595596
} catch (error) {
596597
console.error('Failed to initialize branding for trial users:', error);

0 commit comments

Comments
 (0)