Files
carpseeds.pl/wp-content/plugins/elementor-3.2.5-bck4/tests/e2e/integration/frontend-handlers.spec.js
2024-07-15 11:28:08 +02:00

23 lines
686 B
JavaScript

/// <reference types="Cypress" />
describe( 'Test If The Frontend handlers works', () => {
it( 'Should open the `Toggle` content', () => {
cy.addElementorPage().then( ( pageId ) => {
cy.addWidget( 'general', 'toggle' );
cy.wait( 100 );
cy.get( '#elementor-panel-saver-button-publish' ).click();
cy.wait( 100 );
cy.get( '#elementor-toast' ).should( 'be.visible' );
cy.visit( '/?p=' + pageId ).then( () => {
cy.get( '.elementor-tab-title:first' ).click();
cy.get( '.elementor-tab-content:first' ).should( 'be.visible' );
} );
} );
} );
} );