Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/cypress/e2e/Entries/EntriesPageDataValidations.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe( 'Entries submitted from a form', () => {
cy.get( '.frm_form_nav > :nth-child(1) > a' ).should( 'contain', 'Build' ).click();
cy.get( "a[aria-label='Close']", { timeout: 5000 } ).click( { force: true } );
cy.log( 'Verify that entries are not allowed from the forms list' );
cy.get( 'td[data-colname="Entries"] svg[data-original-title="Saving entries is disabled for this form"]' ).should( 'exist' );
cy.get( 'td[data-colname="Entries"] svg[title="Saving entries is disabled for this form"]' ).should( 'exist' );
} );

it( 'should be stored and validated in the entry list', () => {
Expand Down
20 changes: 16 additions & 4 deletions tests/cypress/e2e/Forms/fieldsInFormBuilder.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ describe( 'Fields in the form builder', () => {

const removeField = field => {
field.within( () => {
cy.get( '.frm-field-action-icons > .dropdown > .frm_bstooltip > .frmsvg > use' ).click( { force: true } );
cy.get( '.frm-dropdown-menu > :nth-child(1) > .frm_delete_field' ).should( 'contain', 'Delete' ).click( { force: true } );
cy.get( '.frm-field-action-icons .dropdown' )
.trigger( 'mouseover' );

cy.get( '.frm-field-action-icons .dropdown .frm-hover-icon .frmsvg' )
.click( { force: true } );

cy.get( '.frm-dropdown-menu .frm_delete_field' )
.should( 'contain', 'Delete' )
.click( { force: true } );
} );
cy.get( '.postbox a[id="frm-confirmed-click"]' ).contains( 'Confirm' ).should( 'be.visible' ).click( { force: true } );

cy.get( '.postbox a[id="frm-confirmed-click"]' )
.contains( 'Confirm' )
.should( 'be.visible' )
.click( { force: true } );

cy.get( `li[data-type="${ field }"]` ).should( 'not.exist' );
};

Expand Down Expand Up @@ -241,7 +253,7 @@ describe( 'Fields in the form builder', () => {

afterEach( () => {
cy.log( 'Teardown - Save the form and delete it' );
cy.get( "a[aria-label='Close']", { timeout: 5000 } ).click( { force: true } );
cy.get( "a[aria-label='Close']", { timeout: 10000 } ).click( { force: true } );
cy.deleteForm();
} );
} );
Loading