Skip to content

Commit

Permalink
Fixed issues on schedule date verification
Browse files Browse the repository at this point in the history
  • Loading branch information
nimya-aot committed Sep 3, 2024
1 parent e12390e commit 01ab9a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion tests/functional/cypress/e2e/form-manage-form.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ describe('Form Designer', () => {
cy.get(rem).contains('2026-06-17').should('be.visible');
});
cy.contains('SEND Reminder email').click();
cy.contains('b','2026-06-21').should('be.visible');
//cy.contains('b','2026-06-21');
cy.get('[data-test="submission-schedule-text"] > :nth-child(2)').contains('2026-06-21');
cy.get('[data-test="canEditForm"]').click();


Expand Down
27 changes: 14 additions & 13 deletions tests/functional/cypress/e2e/form-submission-assign-status.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,27 @@ describe('Form Designer', () => {
cy.get('button').contains('Save').click();
});
}
cy.get('div.formio-builder-form').then($el => {
const coords2 = $el[0].getBoundingClientRect();
cy.get('span.btn').contains('Checkbox')

.trigger('mousedown', { which: 1}, { force: true })
.trigger('mousemove', coords2.x, -50, { force: true })
.trigger('mouseup', { force: true });
cy.get('p').contains('Checkbox Component');
cy.get('input[name="data[label]"]').clear();
cy.get('input[name="data[label]"]').clear();
cy.get('input[name="data[label]"]').type('Applying for self');
cy.get('button').contains('Save').click();
});


});

it('Form Submission and Updation', () => {
cy.viewport(1000, 1100);
cy.waitForLoad();
cy.waitForLoad();
cy.get('div.formio-builder-form').then($el => {
const coords2 = $el[0].getBoundingClientRect();
cy.get('span.btn').contains('Checkbox')

.trigger('mousedown', { which: 1}, { force: true })
.trigger('mousemove', coords2.x, -50, { force: true })
.trigger('mouseup', { force: true });
cy.get('p').contains('Checkbox Component');
cy.get('input[name="data[label]"]').clear();
cy.get('input[name="data[label]"]').clear();
cy.get('input[name="data[label]"]').type('Applying for self');
cy.get('button').contains('Save').click();
});
cy.intercept('GET', `/${depEnv}/api/v1/forms/*`).as('getForm');
// Form saving
let savedButton = cy.get('[data-cy=saveButton]');
Expand Down

0 comments on commit 01ab9a3

Please sign in to comment.