Skip to content

Commit

Permalink
Fix ESLint warning in Performance test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 2, 2024
1 parent 809d622 commit 5f2c1c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/performance/specs/post-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

// Start tracing.
Expand Down Expand Up @@ -318,7 +318,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

// Start tracing.
Expand Down Expand Up @@ -368,7 +368,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

// Start tracing.
Expand Down Expand Up @@ -430,7 +430,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

// Start tracing.
Expand Down Expand Up @@ -493,7 +493,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

// Start tracing.
Expand Down Expand Up @@ -647,7 +647,7 @@ test.describe( 'Post Editor Performance', () => {
const iterations = samples + throwaway;
for ( let i = 1; i <= iterations; i++ ) {
// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

await globalInserterToggle.click();
Expand Down
2 changes: 1 addition & 1 deletion test/performance/specs/site-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ test.describe( 'Site Editor Performance', () => {
}

// Wait for the browser to be idle before starting the monitoring.
// eslint-disable-next-line no-restricted-syntax
// eslint-disable-next-line no-restricted-syntax, playwright/no-wait-for-timeout
await page.waitForTimeout( BROWSER_IDLE_WAIT );

const startTime = performance.now();
Expand Down

0 comments on commit 5f2c1c9

Please sign in to comment.