message: Add waitRootFileFound
diff: @@ -46,8 +46,7 @@ export function runTestWithFixture(
  if (rootPath && path.basename(rootPath) === fixtureName && !shouldSkip) {
  test( fixtureName + ': ' + label, async () => {
  try {
  - const findRootFileEnd = promisify('findrootfileend')
  - await findRootFileEnd
  + await waitRootFileFound()
  await cb()
  } catch (e) {
  await printLogMessages()
  @@ -210,6 +209,18 @@ export async function waitLatexWorkshopActivated() {
  return obtainLatexWorkshop()
  }
  +export async function waitRootFileFound(): Promise<void> {
  + const extension = await waitLatexWorkshopActivated()
  + const rootFile = extension.exports.realExtension?.manager.rootFile
  + if (rootFile) {
  + return
  + } else {
  + const findRootFileEnd = promisify('findrootfileend')
  + await findRootFileEnd
  + return
  + }
  +}
  +
  export function waitGivenRootFile(file: string) {
  return waitUntil( async () => {
  const extension = await waitLatexWorkshopActivated()
  