This commit is contained in:
Yury Semikhatsky 2024-04-24 15:19:45 -07:00
parent 5fbc3e3513
commit e15d71c5fd
2 changed files with 1 additions and 2 deletions

View file

@ -17,7 +17,6 @@
import fs from 'fs';
import path from 'path';
import type { FullConfig, FullResult, Suite, TestCase } from '../../types/testReporter';
import { monotonicTime } from 'playwright-core/lib/utils';
import { formatFailure, stripAnsiEscapes } from './base';
import EmptyReporter from './empty';

View file

@ -518,7 +518,7 @@ for (const useIntermediateMergeReport of [false, true] as const) {
}, { reporter: 'junit' });
const xml = parseXML(result.output);
const time = +xml['testsuites']['$']['time'];
expect(time).toBe(result.report.stats.duration/1000);
expect(time).toBe(result.report.stats.duration / 1000);
expect(time).toBeGreaterThan(1);
});
});