Skip to content

Commit

Permalink
Fix performance test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Mar 29, 2024
1 parent 284827c commit ec81f3e
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"loadPatterns": 2157.14
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"serverResponse": [],
"firstPaint": [],
"domContentLoaded": [],
"loaded": [],
"firstContentfulPaint": [],
"firstBlock": [],
"type": [],
"typeWithoutInspector": [],
"typeWithTopToolbar": [],
"typeContainer": [],
"focus": [],
"listViewOpen": [],
"inserterOpen": [],
"inserterHover": [],
"inserterSearch": [],
"loadPatterns": [
6520.134291999999, 670.5597500000003, 506.68683299999975,
719.2165410000016, 771.6043750000026, 10102.817540999997,
641.4196670000092, 479.9243340000103, 664.5374169999996,
494.4980829999986
]
}
56 changes: 56 additions & 0 deletions test/performance/artifacts/storage-states/admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"cookies": [
{
"name": "wordpress_test_cookie",
"value": "WP%20Cookie%20check",
"domain": "localhost",
"path": "/",
"expires": -1,
"httpOnly": false,
"secure": false,
"sameSite": "Lax"
},
{
"name": "wordpress_23778236db82f19306f247e20a353a99",
"value": "admin%7C1711907943%7CtWifXsXSAry50DcXCuRr2JUWjlMvQRitNF73dQu8t9A%7C5cf6d0c3539dc80685926b0fe455287b51f3fd1bc9f599cdc93acde19854e155",
"domain": "localhost",
"path": "/wp-content/plugins",
"expires": -1,
"httpOnly": true,
"secure": false,
"sameSite": "Lax"
},
{
"name": "wordpress_23778236db82f19306f247e20a353a99",
"value": "admin%7C1711907943%7CtWifXsXSAry50DcXCuRr2JUWjlMvQRitNF73dQu8t9A%7C5cf6d0c3539dc80685926b0fe455287b51f3fd1bc9f599cdc93acde19854e155",
"domain": "localhost",
"path": "/wp-admin",
"expires": -1,
"httpOnly": true,
"secure": false,
"sameSite": "Lax"
},
{
"name": "wordpress_logged_in_23778236db82f19306f247e20a353a99",
"value": "admin%7C1711907943%7CtWifXsXSAry50DcXCuRr2JUWjlMvQRitNF73dQu8t9A%7C94b42f0b00ce0e5a542903b570e2259a2eeab00e57b6c073cb9ee3fc358644c5",
"domain": "localhost",
"path": "/",
"expires": -1,
"httpOnly": true,
"secure": false,
"sameSite": "Lax"
},
{
"name": "wp-settings-time-1",
"value": "1711735143",
"domain": "localhost",
"path": "/",
"expires": 1743271143.643,
"httpOnly": false,
"secure": false,
"sameSite": "Lax"
}
],
"nonce": "e0dc2a5e86",
"rootURL": "http://localhost:8889/index.php?rest_route=/"
}
2 changes: 1 addition & 1 deletion test/performance/specs/post-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ test.describe( 'Post Editor Performance', () => {

const startTime = performance.now();

await page.getByRole( 'button', { name: 'Test' } ).click();
await page.getByRole( 'tab', { name: 'Test' } ).click();

await Promise.all(
testPatterns.map( async ( pattern ) => {
Expand Down

0 comments on commit ec81f3e

Please sign in to comment.