Skip to content

Commit

Permalink
Change theme for perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 21, 2021
1 parent 4d3e504 commit 20ac1f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/e2e-tests/specs/performance/post-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
insertBlock,
openGlobalBlockInserter,
closeGlobalBlockInserter,
trashAllPosts,
activateTheme,
} from '@wordpress/e2e-test-utils';

function readFile( filePath ) {
Expand Down Expand Up @@ -97,6 +99,18 @@ function getHoverEventDurations( trace ) {
jest.setTimeout( 1000000 );

describe( 'Post Editor Performance', () => {
beforeAll( async () => {
await activateTheme( 'tt1-blocks' );
await trashAllPosts( 'wp_template' );
await trashAllPosts( 'wp_template', 'auto-draft' );
await trashAllPosts( 'wp_template_part' );
} );
afterAll( async () => {
await trashAllPosts( 'wp_template' );
await trashAllPosts( 'wp_template_part' );
await activateTheme( 'twentytwentyone' );
} );

it( 'Loading, typing and selecting blocks', async () => {
const results = {
load: [],
Expand Down

0 comments on commit 20ac1f5

Please sign in to comment.