Explorar el Código

Improve bibliography import tests (#4217)

GitOrigin-RevId: 25ddff808a8b427e024d9d1375a24fc86305c38e
Alf Eaton hace 5 años
padre
commit
03b11b2b6c

+ 4 - 1
services/web/test/frontend/bootstrap.js

@@ -3,7 +3,10 @@ require('@babel/register')
 
 
 // Load JSDOM to mock the DOM in Node
 // Load JSDOM to mock the DOM in Node
 // Set pretendToBeVisual to enable requestAnimationFrame
 // Set pretendToBeVisual to enable requestAnimationFrame
-require('jsdom-global')(undefined, { pretendToBeVisual: true })
+require('jsdom-global')(undefined, {
+  pretendToBeVisual: true,
+  url: 'https://www.test-overleaf.com/',
+})
 
 
 const path = require('path')
 const path = require('path')
 process.env.SHARELATEX_CONFIG = path.resolve(
 process.env.SHARELATEX_CONFIG = path.resolve(

+ 0 - 1
services/web/test/frontend/features/symbol-palette/components/symbol-palette.test.js

@@ -67,7 +67,6 @@ describe('symbol palette', function () {
     // wait for the symbols to be filtered
     // wait for the symbols to be filtered
     await waitFor(async () => {
     await waitFor(async () => {
       symbols = await screen.findAllByRole('option')
       symbols = await screen.findAllByRole('option')
-      console.log(symbols.length)
       expect(symbols).to.have.length(2)
       expect(symbols).to.have.length(2)
     })
     })