first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/// <reference types="Cypress" />
describe( 'Test the hide functionality of the navigator', () => {
it( 'Should hide the elementor in when hide in mobile is activated', () => {
cy.addElementorPage();
cy.addWidget( 'basic', 'heading' );
cy.get( '#elementor-preview-iframe' ).then( ( $iframe ) => {
cy.wrap( $iframe.contents().find( '.elementor-widget-heading' ) )
.click( { force: true } )
.trigger( 'contextmenu' );
} );
cy.get( '.elementor-context-menu-list__item-navigator' ).click();
cy.get( '.elementor-tab-control-advanced' ).click();
cy.get( '.elementor-control-_section_responsive' ).scrollIntoView().click();
cy.get( '.elementor-control-hide_mobile .elementor-switch-label' ).click();
cy.get( '.elementor-navigator__item.elementor-editing > .elementor-navigator__element__toggle' )
.click( { force: true } );
cy.get( '#elementor-preview-iframe' ).then( ( $iframe ) => {
cy.wrap( $iframe.contents().find( '.elementor-widget-heading' ), { timeout: 5000 } )
.should( 'not.be.visible' );
} );
} );
} );