Skip to content

Commit 72052af

Browse files
Fix e2e testcase error
1 parent fc5f2c7 commit 72052af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cypress/integration/gutenberg/free-gutenberg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ describe('Test Free - gutenberg', function() {
2727

2828
cy.wrap(charts).each((value, i, array) => {
2929
// insert a visualizer block
30-
cy.get('div.edit-post-header__toolbar button.edit-post-header-toolbar__inserter-toggle').click();
30+
cy.get('div.edit-post-header__toolbar button.edit-post-header-toolbar__inserter-toggle').click({force:true});
3131
cy.get('.edit-post-editor__inserter-panel-content').then(function ($popup) {
3232
cy.wrap($popup).find('.components-search-control__input').type('visua');
3333
cy.wrap($popup).find('.block-editor-block-types-list .editor-block-list-item-visualizer-chart').should('have.length', 1);
34-
cy.wrap($popup).find('.block-editor-block-types-list .editor-block-list-item-visualizer-chart').click();
34+
cy.wrap($popup).find('.block-editor-block-types-list .editor-block-list-item-visualizer-chart').click({force:true});
3535
});
3636

3737
// see the block has the correct elements.

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Cypress.Commands.add( 'create_available_charts', ($num, $lib = '') => {
294294

295295
// if we are targeting a particular library, then select it in the toolbar
296296
if('' !== $lib){
297-
cy.wrap($body).find('.viz-select-library').select($lib);
297+
cy.wrap($body).find('.viz-select-library').invoke('show').select($lib);
298298
}
299299
// create the chart.
300300
cy.wrap($body).find('#toolbar input[type="submit"]').click();

0 commit comments

Comments
 (0)