Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update our blocks apiVersion from 2 to 3 #4029

Merged
merged 11 commits into from
Dec 5, 2024
Prev Previous commit
Next Next commit
Ensure we can properly add the instant results block
  • Loading branch information
dkotter committed Dec 4, 2024
commit a361f402fc42cc1b84fa66a100613fd25af2caf2
6 changes: 5 additions & 1 deletion tests/cypress/integration/features/instant-results.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,18 @@ describe('Instant Results Feature', { tags: '@slow' }, () => {
content: 'Testing openModal()',
});

cy.getBlockEditor().as('iframe');
cy.openBlockInserter();
cy.insertBlock('Buttons');
cy.get('.wp-block-button__link').type('Search "Block"');
cy.closeBlockInserter();
cy.get('@iframe').find('.wp-block-button__link').type('Search "Block"');

/**
* Update the post and visit the front end.
*/
cy.wait(500); // eslint-disable-line
cy.get('.editor-post-publish-button__button').click();
cy.wait(2000); // eslint-disable-line
cy.get('.components-snackbar__action').click();

/**
Expand Down