mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[web] reduce log noise in CI (#27961)
* [web] reduce noise from CollectPayPalPastDueInvoiceTest * [web] reduce noise for frontend tests that use Range.getClientRects * [web] avoid nesting <li> elements in ProjectToolsMoreDropdownButton RenameProjectMenuItem/CopyProjectMenuItem will return <li> elements. * [web] avoid clicking on links that navigate away in JSDom * [web] add mock for location change in JSDom * [web] add fallback stripe subscription data for test 3.8k lines of log noise! GitOrigin-RevId: 7adab182487a6c07ac9809c60802e498a0edb0ec
This commit is contained in:
@@ -37,15 +37,10 @@ describe('CodeMirror scroll position extension', function () {
|
||||
sinon
|
||||
.stub(HTMLElement.prototype, 'getBoundingClientRect')
|
||||
.returns({ top: 100, left: 0, right: 500, bottom: 200 } as DOMRect)
|
||||
|
||||
// Range.getClientRects doesn't exist yet in jsdom
|
||||
window.Range.prototype.getClientRects = sinon.stub().returns([])
|
||||
})
|
||||
|
||||
afterEach(function () {
|
||||
sinon.restore()
|
||||
// @ts-ignore
|
||||
delete window.Range.prototype.getClientRects
|
||||
})
|
||||
|
||||
it('stores scroll position when the view is destroyed', async function () {
|
||||
|
||||
Reference in New Issue
Block a user