Skip to content

Commit

Permalink
Merge pull request #5502 from flexion/10275-calendar-generator
Browse files Browse the repository at this point in the history
10275 calendar generator
  • Loading branch information
jimlerza authored Dec 5, 2024
2 parents 11cdb6e + a04d577 commit 75f4d6d
Show file tree
Hide file tree
Showing 78 changed files with 536,390 additions and 3,274 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ module.exports = {
'rect',
'reindex',
'renderer',
'repo',
'rescan',
'restapi',
'riker',
Expand Down Expand Up @@ -440,6 +441,7 @@ module.exports = {
'wicg',
'workitem',
'workitems',
'xlsx',
'xpos',
'zendesk',
],
Expand Down
2 changes: 1 addition & 1 deletion cypress/helpers/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function retry(cb: () => Cypress.Chainable<boolean>, maxAttempts = 5) {
}
});
} else {
throw new Error('cypress failed to run a successful retry block');
throw new Error('cypress failed to successfully run a retry block');
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import {
FORMATS,
createISODateString,
getBusinessDateInFuture,
} from '../../../../../shared/src/business/utilities/DateHandler';
import { SUGGESTED_TRIAL_SESSION_TITLES } from '../../../../../shared/src/business/entities/EntityConstants';
import { loginAsPetitionsClerk1 } from '../../../../helpers/authentication/login-as-helpers';

describe('Run the suggested trial session calendar generator', () => {
const tomorrow = getBusinessDateInFuture({
numberOfDays: 1,
outputFormat: FORMATS.MMDDYYYY,
startDate: createISODateString(),
});

const oneMonthFromNow = getBusinessDateInFuture({
numberOfDays: 30,
outputFormat: FORMATS.MMDDYYYY,
startDate: createISODateString(),
});

it('should run the suggested trial session calendar generator', () => {
loginAsPetitionsClerk1();
cy.visit('/trial-sessions');
cy.get('[data-testId="open-create-term-modal-button"]').click();
cy.get('[data-testid="term-name-field"]').type('Test Term Name');
cy.get(
'.usa-date-picker__wrapper > [data-testid="termStartDate-date-start-input"]',
).type(tomorrow);
cy.get(
'.usa-date-picker__wrapper > [data-testid="termEndDate-date-end-input"]',
).type(oneMonthFromNow);
cy.get('[data-testid="modal-button-confirm"]').click();
cy.get('[data-testid="success-alert"]').should(
'contain.text',
SUGGESTED_TRIAL_SESSION_TITLES.success,
);
});
});
2 changes: 1 addition & 1 deletion docs/running-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ This will install `node-canvas` dependencies globally. As of 12/05/2022, `node-c

Make sure you are on the `ustaxcourt/staging` branch before you install the npm dependencies or try to start the services.

#### Install the NPM Depedencies
#### Install the NPM Dependencies

All applications dependencies are managed via our `package.json` and `package-lock.json` files and are installed using `npm`. You will first need to install of our dependencies by running the following:

Expand Down
Loading

0 comments on commit 75f4d6d

Please sign in to comment.