Skip to content

Commit

Permalink
Fix the performance tests (#18020)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored and hypest committed Nov 4, 2019
1 parent d417796 commit 4ad540d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/config/performance-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function average( array ) {

class PerformanceReporter {
onRunComplete() {
const path = __dirname + '/../specs/results.json';
const path = __dirname + '/../specs/performance/results.json';

if ( ! existsSync( path ) ) {
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/performance/performance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function readFile( filePath ) {

describe( 'Performance', () => {
it( '1000 paragraphs', async () => {
const html = readFile( join( __dirname, '../assets/large-post.html' ) );
const html = readFile( join( __dirname, '../../assets/large-post.html' ) );

await createNewPost();
await page.evaluate( ( _html ) => {
Expand Down

0 comments on commit 4ad540d

Please sign in to comment.