Merge pull request #26440 from overleaf/mj-ide-co-branding-submit
[web] Editor redesign: Add co-branded submit button to toolbar GitOrigin-RevId: 45f7ba93de8b28868d88a4ad913f6543e0f7e0a6
This commit is contained in:
committed by
Copybot
parent
e562e3d1bf
commit
4fd9c6fd18
@@ -118,5 +118,21 @@ describe('BrandVariationsHandler', function () {
|
||||
'<br /><strong style="color:#B39500">AGU Journal</strong>hello'
|
||||
)
|
||||
})
|
||||
|
||||
it("should sanitize and remove breaks in 'submit_button_html_no_br'", async function () {
|
||||
this.mockedBrandVariationDetails.submit_button_html =
|
||||
'Submit to<br class="break"/><strong style="color:#B39500">AGU Journal</strong><iframe>hello</iframe>'
|
||||
this.V1Api.request.callsArgWith(
|
||||
1,
|
||||
null,
|
||||
{ statusCode: 200 },
|
||||
this.mockedBrandVariationDetails
|
||||
)
|
||||
const brandVariationDetails =
|
||||
await this.BrandVariationsHandler.promises.getBrandVariationById('12')
|
||||
expect(brandVariationDetails.submit_button_html_no_br).to.equal(
|
||||
'Submit to <strong style="color:#B39500">AGU Journal</strong>hello'
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user