Skip to content

Commit

Permalink
perf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 3, 2024
1 parent 7fde9db commit 4d9d9ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/specs/site-editor/template-registration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ test.describe( 'Block template registration', () => {
.getByLabel( 'Dismiss this notice' )
.getByText( `"Author: Admin" reset.` );
await page.getByPlaceholder( 'Search' ).fill( 'Author: admin' );
await page
.locator( '.fields-title-field', { hasText: 'Author: Admin' } )
.click();
await page.getByRole( 'button', { name: 'Author: Admin' } ).click();

Check failure on line 322 in test/e2e/specs/site-editor/template-registration.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins

1) [chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Author: Admin' }) resolved to 3 elements: 1) <div tabindex="0" role="button" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).first() 2) <button type="button" aria-label="Author: admin" class="page-templates-preview-field__button">…</button> aka getByLabel('Author: admin', { exact: true }) 3) <div tabindex="0" role="button" class="dataviews-view-grid__primary-field dataviews-view-grid__primary-field--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).nth(2) Call log: - waiting for getByRole('button', { name: 'Author: Admin' }) 320 | .getByText( `"Author: Admin" reset.` ); 321 | await page.getByPlaceholder( 'Search' ).fill( 'Author: admin' ); > 322 | await page.getByRole( 'button', { name: 'Author: Admin' } ).click(); | ^ 323 | const actions = page.getByLabel( 'Actions' ); 324 | await actions.first().click(); 325 | await page.getByRole( 'menuitem', { name: 'Reset' } ).click(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:322:63

Check failure on line 322 in test/e2e/specs/site-editor/template-registration.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins

1) [chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Author: Admin' }) resolved to 3 elements: 1) <div tabindex="0" role="button" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).first() 2) <button type="button" aria-label="Author: admin" class="page-templates-preview-field__button">…</button> aka getByLabel('Author: admin', { exact: true }) 3) <div tabindex="0" role="button" class="dataviews-view-grid__primary-field dataviews-view-grid__primary-field--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).nth(2) Call log: - waiting for getByRole('button', { name: 'Author: Admin' }) 320 | .getByText( `"Author: Admin" reset.` ); 321 | await page.getByPlaceholder( 'Search' ).fill( 'Author: admin' ); > 322 | await page.getByRole( 'button', { name: 'Author: Admin' } ).click(); | ^ 323 | const actions = page.getByLabel( 'Actions' ); 324 | await actions.first().click(); 325 | await page.getByRole( 'menuitem', { name: 'Reset' } ).click(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:322:63

Check failure on line 322 in test/e2e/specs/site-editor/template-registration.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins

1) [chromium] › site-editor/template-registration.spec.js:264:2 › Block template registration › user-customized templates cannot be overridden by plugins Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Author: Admin' }) resolved to 3 elements: 1) <div tabindex="0" role="button" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).first() 2) <button type="button" aria-label="Author: admin" class="page-templates-preview-field__button">…</button> aka getByLabel('Author: admin', { exact: true }) 3) <div tabindex="0" role="button" class="dataviews-view-grid__primary-field dataviews-view-grid__primary-field--clickable">…</div> aka getByRole('button', { name: 'Author: admin' }).nth(2) Call log: - waiting for getByRole('button', { name: 'Author: Admin' }) 320 | .getByText( `"Author: Admin" reset.` ); 321 | await page.getByPlaceholder( 'Search' ).fill( 'Author: admin' ); > 322 | await page.getByRole( 'button', { name: 'Author: Admin' } ).click(); | ^ 323 | const actions = page.getByLabel( 'Actions' ); 324 | await actions.first().click(); 325 | await page.getByRole( 'menuitem', { name: 'Reset' } ).click(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:322:63
const actions = page.getByLabel( 'Actions' );
await actions.first().click();
await page.getByRole( 'menuitem', { name: 'Reset' } ).click();
Expand Down

0 comments on commit 4d9d9ad

Please sign in to comment.