This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
forked from folio-org/stripes-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ualibweb/pax
Create Alabama format Cypress test
- Loading branch information
Showing
3 changed files
with
281 additions
and
40 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
cypress/e2e/settings/users/fee&Fine/configure-transfer-criteria-example-test-alabama.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
'12:00 A', | ||
['Monday', 'Thursday'] | ||
); | ||
TransferFeeFine.verifyTransferCriteriaScheduling( | ||
'WEEK', | ||
'0', | ||
'12:00 AM', | ||
['Monday', 'Thursday'] | ||
); | ||
}); | ||
|
||
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.addAlabamaHeaderFormat(); | ||
TransferFeeFine.verifyAddAlabamaHeaderFormat(); | ||
}); | ||
|
||
// Account Data Format | ||
it('should be able to set account data format', () => { | ||
TransferFeeFine.clearFormat('data'); | ||
TransferFeeFine.verifyClearFormat('data'); | ||
TransferFeeFine.addAlabamaDataFormat(); | ||
TransferFeeFine.verifyAddAlabamaDataFormat(); | ||
}); | ||
|
||
// 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(); | ||
}); | ||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters