From b59c61288c738046f8d6be64389ba08907b4cdc4 Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Thu, 21 Dec 2023 00:01:58 -0400 Subject: [PATCH] fix two tests --- tests/e2e/specs/DeviceVisivilityInspector.spec.js | 4 ++-- tests/e2e/specs/FileUpload.spec.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/e2e/specs/DeviceVisivilityInspector.spec.js b/tests/e2e/specs/DeviceVisivilityInspector.spec.js index 522b4fe7f..ba81d98b7 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(); diff --git a/tests/e2e/specs/FileUpload.spec.js b/tests/e2e/specs/FileUpload.spec.js index b8d878e59..d3be719c4 100644 --- a/tests/e2e/specs/FileUpload.spec.js +++ b/tests/e2e/specs/FileUpload.spec.js @@ -1,8 +1,7 @@ describe('File Upload', () => { it('Automatically sets a variable name', () => { cy.visit('/'); - cy.openAcordeon("collapse-4"); - //cy.openAcordeon("collapse-1"); + 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(); @@ -17,10 +16,10 @@ describe('File Upload', () => { it('Disables when task is self service', () => { cy.visit('/'); + cy.openAcordeon("collapse-5"); cy.window().then((win) => { win.ProcessMaker.isSelfService = true; }); - cy.get('[data-cy=controls-FileUpload]').drag('[data-cy=screen-drop-zone]', 'bottom'); cy.get('[data-cy=mode-preview]').click(); cy.get('[data-cy=file-upload-button]').should('have.attr', 'disabled');