Skip to content

Commit

Permalink
fix two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karlOS123testing committed Dec 21, 2023
1 parent 2a2feec commit b59c612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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

0 comments on commit b59c612

Please sign in to comment.