Skip to content

Commit

Permalink
Merge pull request #1500 from ProcessMaker/fix_cypress_test
Browse files Browse the repository at this point in the history
fix_cypress_test
  • Loading branch information
nolanpro authored Jan 2, 2024
2 parents 17397ef + bd6c7f7 commit 24944ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/specs/DeviceVisivilityInspector.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions tests/e2e/specs/FileUpload.spec.js
Original file line number Diff line number Diff line change
@@ -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();

Expand All @@ -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');
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/specs/MultiInstanceLoopContext.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe("FOUR-3375 FileUpload inside MultiInstance Task", () => {
fileUploadId: 1
})
).as("uploadMainFile");
cy.openAcordeon("collapse-4");
cy.uploadFile(
"[data-cy='screen-field-rootUpload'] input[type=file]",
"avatar.jpeg",
Expand Down

0 comments on commit 24944ca

Please sign in to comment.