Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from ualibweb/danetsao
Browse files Browse the repository at this point in the history
Merge changes to master
  • Loading branch information
nhanaa authored Sep 6, 2023
2 parents 1d27afa + 3478bde commit 56b006f
Show file tree
Hide file tree
Showing 4 changed files with 564 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import settingsMenu from '../../../../support/fragments/settingsMenu';
import TransferFeeFine from '../../../../support/fragments/users/transferFeeFine';

describe('Build the Cornell bursar transfer file', () => {
before(() => {
cy.loginAsAdmin({
path: settingsMenu.usersTransferCriteria,
waiter: TransferFeeFine.waitLoadingTransferCriteria,
});
});

it('should be able to open all the panes', () => {
TransferFeeFine.openAllPanes();
TransferFeeFine.verifyOpenAllPanes();
});

it('should be able to set scheduling', () => {
TransferFeeFine.setTransferCriteriaScheduling(
'Weeks',
'1',
'11:00 P',
['Monday']
);
TransferFeeFine.verifyTransferCriteriaScheduling(
'WEEK',
'1',
'11:00 PM',
['Monday']
);
});

it('should be able to set no criteria', () => {
TransferFeeFine.setCriteria(false);
TransferFeeFine.verifyCriteria(false);
});

// Aggregate by patron: Box unchecked
it('should be able to set aggregate by patron', () => {
TransferFeeFine.setAggregateByPatron(false);
TransferFeeFine.verifyAggregateByPatron(false);
});

// Header Format
it('should be able to set header format', () => {
TransferFeeFine.clearFormat('header');
TransferFeeFine.verifyClearFormat('header');
TransferFeeFine.addCornellHeaderFormat();
TransferFeeFine.verifyAddCornellHeaderFormat();
});

// Account Data Format
it('should be able to set account data format', () => {
TransferFeeFine.clearFormat('data');
TransferFeeFine.verifyClearFormat('data');
TransferFeeFine.addCornellDataFormat();
TransferFeeFine.verifyAddCornellDataFormat();
});

// Footer Format
it('should be able to set footer format', () => {
TransferFeeFine.clearFormat('footer');
TransferFeeFine.verifyClearFormat('footer');
});

// Transer account data to
it('should be able to set transfer account data to', () => {
TransferFeeFine.setTransferAccount('Lost Item Fine Office', 'acct');
TransferFeeFine.verifyTransferAccount('b25fd8e7-a0e7-4690-ab0b-94039739c0db', '90c1820f-60bf-4b9a-99f5-d677ea78ddca');
});

it('should be able to run manually', () => {
TransferFeeFine.runManually();
TransferFeeFine.verifyRunManually();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import settingsMenu from '../../../../support/fragments/settingsMenu';
import TransferFeeFine from '../../../../support/fragments/users/transferFeeFine';

describe('Build the Duke bursar transfer file', () => {
before(() => {
cy.loginAsAdmin({
path: settingsMenu.usersTransferCriteria,
waiter: TransferFeeFine.waitLoadingTransferCriteria,
});
});

it('should be able to open all the panes', () => {
TransferFeeFine.openAllPanes();
TransferFeeFine.verifyOpenAllPanes();
});

it('should be able to set scheduling', () => {
TransferFeeFine.setTransferCriteriaScheduling(
'Weeks',
'0',
'3:30 P',
['Monday']
);
TransferFeeFine.verifyTransferCriteriaScheduling(
'WEEK',
'0',
'3:30 PM',
['Monday']
);
});

it('should be able to set no criteria', () => {
TransferFeeFine.setCriteria(false);
TransferFeeFine.verifyCriteria(false);
});

// Aggregate by patron: Box unchecked
it('should be able to set aggregate by patron', () => {
TransferFeeFine.setAggregateByPatron(false);
TransferFeeFine.verifyAggregateByPatron(false);
});

// Header Format
it('should be able to set header format', () => {
TransferFeeFine.clearFormat('header');
TransferFeeFine.verifyClearFormat('header');
TransferFeeFine.addDukeHeaderFormat();
TransferFeeFine.verifyAddDukeHeaderFormat();
});

// Account Data Format
it('should be able to set account data format', () => {
TransferFeeFine.clearFormat('data');
TransferFeeFine.verifyClearFormat('data');
TransferFeeFine.addDukeDataFormat();
TransferFeeFine.verifyAddDukeDataFormat();
});

// Footer Format
it('should be able to set footer format', () => {
TransferFeeFine.clearFormat('footer');
TransferFeeFine.verifyClearFormat('footer');
});

// Transer account data to
it('should be able to set transfer account data to', () => {
TransferFeeFine.setTransferAccount('Lost Item Fine Office', 'acct');
TransferFeeFine.verifyTransferAccount('b25fd8e7-a0e7-4690-ab0b-94039739c0db', '90c1820f-60bf-4b9a-99f5-d677ea78ddca');
});

it('should be able to run manually', () => {
TransferFeeFine.runManually();
TransferFeeFine.verifyRunManually();
});
});
Loading

0 comments on commit 56b006f

Please sign in to comment.