Skip to content

Commit

Permalink
9998: remove superfluous cerebraltest modifications and console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomElliottFlexion committed Aug 23, 2023
1 parent 10ae089 commit 2d6d71f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Docket Clerk Adds Court-Issued Order to Docket Record', () => {
petitionsClerkPrioritizesCase(cerebralTest);

loginAs(cerebralTest, '[email protected]');
docketClerkViewsDraftOrder(cerebralTest, 0);
docketClerkViewsDraftOrder(cerebralTest);
docketClerkGetsDocketEntryByEventCode(cerebralTest, 'O');
docketClerkSignsOrder(cerebralTest);
docketClerkAddsDocketEntryFromOrder(cerebralTest, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export const docketClerkNavigatesToEditDocketEntryMeta = (
docketRecordIndex = 1,
) => {
it('the docketclerk navigates to page to edit docket entry meta', async () => {
console.log('docketRecordIndex FOR NAVIGATION', docketRecordIndex);

await cerebralTest.runSequence('gotoEditDocketEntryMetaSequence', {
docketNumber: cerebralTest.docketNumber,
docketRecordIndex,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const docketClerkServesDocument = (cerebralTest, docketRecordIndex?) => {
await getFormattedDocketEntriesForTest(cerebralTest);

const docketEntryId =
cerebralTest.draftOrders && docketRecordIndex
cerebralTest.draftOrders && docketRecordIndex !== undefined
? cerebralTest.draftOrders[docketRecordIndex].docketEntryId
: cerebralTest.docketEntryId;

Expand Down Expand Up @@ -38,8 +38,5 @@ export const docketClerkServesDocument = (cerebralTest, docketRecordIndex?) => {
await waitForLoadingComponentToHide({ cerebralTest });

await refreshElasticsearchIndex();

console.log('orderDocument', orderDocument);
cerebralTest.docketEntryId = orderDocument.docketEntryId;
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ export const docketClerkStrikesDocketEntry = (
) => {
return it('docket clerk strikes docket entry', async () => {
await cerebralTest.runSequence('strikeDocketEntrySequence');
console.log('docketRecordIndex FOR STRIKING', docketRecordIndex);

const caseDocuments = cerebralTest.getState('caseDetail.docketEntries');
console.log('caseDocuments', caseDocuments);
const strickenDocument = caseDocuments.find(
d => d.index === docketRecordIndex,
);
console.log('strickenDocument', strickenDocument);

expect(strickenDocument.isStricken).toEqual(true);
expect(strickenDocument.strickenBy).toEqual('Test Docketclerk');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CASE_STATUS_TYPES } from '../../../shared/src/business/entities/EntityC
export const docketClerkViewsCaseDetailAfterServingCourtIssuedDocument = (
cerebralTest,
draftOrderIndex,
expectedCaseStatus,
expectedCaseStatus?,
) => {
return it('Docketclerk views case detail after serving court-issued document', async () => {
await cerebralTest.runSequence('gotoCaseDetailSequence', {
Expand Down

0 comments on commit 2d6d71f

Please sign in to comment.