diff --git a/src/components/vue-form-builder.vue b/src/components/vue-form-builder.vue index 9d3730b30..246738edc 100644 --- a/src/components/vue-form-builder.vue +++ b/src/components/vue-form-builder.vue @@ -884,7 +884,7 @@ export default { return order; }, setGroupOrder(orderConfig) { - this.groupOrder = { ...orderConfig }; + this.groupOrder = { ...this.groupOrder, ...orderConfig }; }, toggleCollapse(index) { if (this.collapse[index] && this.collapse[index] === true) { diff --git a/tests/e2e/specs/DeviceVisivilityInspector.spec.js b/tests/e2e/specs/DeviceVisivilityInspector.spec.js index b6e358cff..c6710efb6 100644 --- a/tests/e2e/specs/DeviceVisivilityInspector.spec.js +++ b/tests/e2e/specs/DeviceVisivilityInspector.spec.js @@ -53,7 +53,7 @@ describe('Device Visiblility Inspector', () => { }); it('Verify if a FileDownload has device visiblility settings', () => { cy.visit('/'); - cy.openAcordeon("collapse-4"); + cy.openAcordeon("collapse-5"); cy.get('[data-cy=controls-FileDownload]').drag('[data-cy=screen-drop-zone]', 'bottom'); cy.get('[data-cy=screen-element-container]').click(); cy.get('[data-cy=accordion-Advanced]').click(); @@ -67,7 +67,7 @@ describe('Device Visiblility Inspector', () => { }); it('Verify if a FileUpload has device visiblility settings', () => { cy.visit('/'); - cy.openAcordeon("collapse-4"); + cy.openAcordeon("collapse-5"); cy.get('[data-cy=controls-FileUpload]').drag('[data-cy=screen-drop-zone]', 'bottom'); cy.get('[data-cy=screen-element-container]').click(); cy.get('[data-cy=accordion-Advanced]').click();