@@ -169,6 +169,11 @@ test.describe("Branding Fields - Template Gallery Modal", () => {
169169 upgradeRegion . getByText ( / P a y m e n t s h a n d l e d b y P a d d l e / ) ,
170170 ) . toBeVisible ( ) ;
171171
172+ // Verify "Save without branding" button is visible on upgrade prompt
173+ await expect (
174+ upgradeRegion . getByRole ( "button" , { name : "Save without branding" } ) ,
175+ ) . toBeVisible ( ) ;
176+
172177 // Verify "Back to editor" link works
173178 await upgradeRegion . getByText ( "Back to editor" ) . click ( ) ;
174179 await expect ( upgradeRegion ) . not . toBeVisible ( ) ;
@@ -192,6 +197,47 @@ test.describe("Branding Fields - Template Gallery Modal", () => {
192197 await expect ( paddleFrame . first ( ) ) . toBeVisible ( { timeout : 15000 } ) ;
193198 } ) ;
194199
200+ test ( "saves without branding from upgrade prompt screen" , async ( {
201+ page,
202+ testFeed,
203+ } ) => {
204+ const serverName = getTestServerName ( ) ;
205+ const channelName = getTestChannelName ( ) ;
206+
207+ test . skip (
208+ ! serverName || ! channelName ,
209+ "serverName and channelName must be configured in e2econfig.json" ,
210+ ) ;
211+
212+ const modal = await navigateToTemplateModal (
213+ page ,
214+ testFeed . id ,
215+ serverName ! ,
216+ channelName ! ,
217+ ) ;
218+
219+ // Fill branding then go to upgrade prompt
220+ await modal . getByLabel ( "Display Name" ) . fill ( "My Custom Bot" ) ;
221+ await modal
222+ . getByRole ( "button" , { name : "Upgrade to save with branding" } )
223+ . click ( ) ;
224+
225+ const upgradeRegion = modal . getByRole ( "region" , {
226+ name : "Upgrade to save custom branding" ,
227+ } ) ;
228+ await expect ( upgradeRegion ) . toBeVisible ( ) ;
229+
230+ // Click "Save without branding" on the upgrade prompt
231+ await upgradeRegion
232+ . getByRole ( "button" , { name : "Save without branding" } )
233+ . click ( ) ;
234+
235+ // Connection should save successfully
236+ await expect ( page . getByText ( "You're all set" ) ) . toBeVisible ( {
237+ timeout : 10000 ,
238+ } ) ;
239+ } ) ;
240+
195241 test ( "saves without branding when clicking save without branding" , async ( {
196242 page,
197243 testFeed,
0 commit comments