Skip to content

Commit 6879014

Browse files
committed
fix wp 5.7 no results selector
1 parent cdd54fe commit 6879014

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cypress/integration/column/column-block.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ describe( 'Column Block', () => {
2020
'//div[contains(@class,"block-editor-inserter__no-results")]';
2121
const noResultsSelectorWP55 =
2222
'//div[contains(@class,"block-editor-inserter__content")]//div[contains(@class,"has-no-results")]';
23+
const noResultsSelectorWP57 =
24+
'//p[contains(@class,"block-directory-downloadable-blocks-panel__description") and contains(@class,"has-no-results")]';
2325
cy.xpath(
24-
`${ noResultsSelectorPreWP55 } | ${ noResultsSelectorWP55 }`
26+
`${ noResultsSelectorPreWP55 } | ${ noResultsSelectorWP55 } | ${ noResultsSelectorWP57 }`
2527
).should( 'exist' );
2628
} );
2729

0 commit comments

Comments
 (0)