Skip to content

Commit 8f4f714

Browse files
authored
Merge pull request #554 from xwp/fix/wp-5.7
WordPress 5.7 updates
2 parents 338d611 + 147d49c commit 8f4f714

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

tests/e2e/specs/block-editor/blocks/tab-bar/tab-bar.spec.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe( 'blocks: material/tab-bar', () => {
179179
).toHaveLength( 0 );
180180
} );
181181

182-
it( 'should not offer tab-bar as a block option within another Tabss content', async () => {
182+
it( 'should not offer tab-bar as a block option within another Tabs content', async () => {
183183
await insertBlock( 'Tabs' );
184184
await selectBlockByName( 'material/tab-bar' );
185185

@@ -191,8 +191,17 @@ describe( 'blocks: material/tab-bar', () => {
191191
const [ searchBlock ] = await page.$$( '.block-editor-inserter__search' );
192192
await searchBlock.type( 'Tabs' );
193193

194-
expect(
195-
await page.$$( '.block-editor-inserter__no-results' )
196-
).toHaveLength( 1 );
194+
try {
195+
expect(
196+
await page.$$( '.block-editor-inserter__no-results' )
197+
).toHaveLength( 1 );
198+
} catch ( ex ) {
199+
// eslint-disable-next-line jest/no-try-expect
200+
expect(
201+
await page.$$(
202+
'.block-editor-block-types-list__item editor-block-list-item-material-tab-bar'
203+
)
204+
).toHaveLength( 0 );
205+
}
197206
} );
198207
} );

tests/e2e/specs/customizer/shape-size.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe( 'Customize controls: Shape Size (Corner Styles)', () => {
145145

146146
let globalRadius = await moveRangeSlider( sliders[ 0 ], 0.25 );
147147
const buttonRadius = await moveRangeSlider( sliders[ 1 ], 0.5 );
148-
const dataTableRadius = await moveRangeSlider( sliders[ 4 ], 1 );
148+
const dataTableRadius = await moveRangeSlider( sliders[ 4 ], 0.95 );
149149

150150
expect(
151151
await page.evaluate( el => {

0 commit comments

Comments
 (0)