/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
test/e2e/specs/editor/various/adding-patterns.spec.js
24 строки
705 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); test.describe( 'adding patterns', () => { test.beforeEach( async ( { admin } ) => { await admin.createNewPost(); } ); test( 'should insert a block pattern', async ( { page, editor } ) => { await page.getByLabel( 'Block Inserter' ).click(); await page.getByRole( 'tab', { name: 'Patterns' } ).click(); await page .getByRole( 'region', { name: 'Block Library' } ) .getByRole( 'searchbox', { name: 'Search' } ) .fill( 'Standard' ); await page.getByRole( 'option', { name: 'Standard' } ).click(); await expect.poll( editor.getBlocks ).toMatchObject( [ { name: 'core/query', }, ] ); } ); } );