Improve bibliography import tests (#4217)

GitOrigin-RevId: 25ddff808a8b427e024d9d1375a24fc86305c38e
This commit is contained in:
Alf Eaton 2021-06-21 11:01:29 +01:00 committed by Copybot
parent 1760d93fc4
commit 03b11b2b6c
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,10 @@ require('@babel/register')
// Load JSDOM to mock the DOM in Node
// 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')
process.env.SHARELATEX_CONFIG = path.resolve(

View file

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