File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 22 * Opens all block inserter categories.
33 */
44export async function openAllBlockInserterCategories ( ) {
5- const notOpenCategoryPanels = await page . $$ (
6- '.block-editor-inserter__results .components-panel__body:not(.is-opened)'
7- ) ;
8- for ( const categoryPanel of notOpenCategoryPanels ) {
5+ const notOppenedCategorySelector = '.block-editor-inserter__results .components-panel__body:not(.is-opened)' ;
6+ let categoryPanel = await page . $ ( notOppenedCategorySelector ) ;
7+ while ( categoryPanel !== null ) {
98 await categoryPanel . click ( ) ;
9+ categoryPanel = await page . $ ( notOppenedCategorySelector ) ;
1010 }
1111}
Original file line number Diff line number Diff line change @@ -11,12 +11,7 @@ import {
1111 openGlobalBlockInserter ,
1212} from '@wordpress/e2e-test-utils' ;
1313
14- // Todo: Understand why this test causing intermitent fails on travis.
15- // Error: ● Allowed Blocks Setting on InnerBlocks › allows all blocks if the allowed blocks setting was not set
16- // Node is detached from document
17- // at ElementHandle._scrollIntoViewIfNeeded (../../node_modules/puppeteer/lib/ElementHandle.js:75:13)
18- // eslint-disable-next-line jest/no-disabled-tests
19- describe . skip ( 'Allowed Blocks Setting on InnerBlocks ' , ( ) => {
14+ describe ( 'Allowed Blocks Setting on InnerBlocks ' , ( ) => {
2015 const paragraphSelector = '.block-editor-rich-text__editable.wp-block-paragraph' ;
2116 beforeAll ( async ( ) => {
2217 await activatePlugin ( 'gutenberg-test-innerblocks-allowed-blocks' ) ;
You can’t perform that action at this time.
0 commit comments