-
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.
- Loading branch information
weskubo-cgi
authored and
weskubo-cgi
committed
Aug 15, 2024
1 parent
d432f40
commit b67c788
Showing
19 changed files
with
235 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 changes: 22 additions & 0 deletions
22
testing/cypress/e2e/5-funding-agreement/funding-agreements.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,22 @@ | ||
const USERNAME = Cypress.env('PORTAL_USERNAME') | ||
const PASSWORD = Cypress.env('PORTAL_PASSWORD') | ||
const PORTAL_URL = Cypress.env('PORTAL_URL') | ||
|
||
describe('Funding', () => { | ||
beforeEach(() => { | ||
cy.loginToPortal(USERNAME, PASSWORD, PORTAL_URL) | ||
cy.visit(PORTAL_URL) | ||
cy.get('#funding-card').click() | ||
cy.get('button[class*="v-tab"]').contains('Funding Agreements').click() | ||
}) | ||
|
||
it('funding-agreements', () => { | ||
cy.get('h2').contains('Funding Details') | ||
|
||
// Check for at least one funding detail | ||
cy.get('#funding-agreements-table') | ||
.find('tbody') | ||
.find('tr') | ||
.should('have.length.at.least', 1) | ||
}) | ||
}) |
34 changes: 34 additions & 0 deletions
34
testing/cypress/e2e/5-funding-agreement/payment-records.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,34 @@ | ||
const USERNAME = Cypress.env('PORTAL_USERNAME') | ||
const PASSWORD = Cypress.env('PORTAL_PASSWORD') | ||
const PORTAL_URL = Cypress.env('PORTAL_URL') | ||
|
||
describe('Payments', () => { | ||
beforeEach(() => { | ||
cy.loginToPortal(USERNAME, PASSWORD, PORTAL_URL) | ||
cy.visit(PORTAL_URL) | ||
cy.get('#funding-card').click() | ||
cy.get('button[class*="v-tab"]').contains('Payment Records').click() | ||
}) | ||
|
||
it('payment history', () => { | ||
cy.get('h2').contains('Payment History') | ||
|
||
// Check for at least one payment history | ||
// TODO (weskubo-cgi) Update when payments available | ||
cy.get('#payment-history-table') | ||
.find('tbody') | ||
.find('tr') | ||
.should('have.length.at.least', 0) | ||
}) | ||
|
||
it('scheduled payments', () => { | ||
cy.get('h2').contains('Payment History') | ||
|
||
// Check for at least one payment history | ||
// TODO (weskubo-cgi) Enable when payments available | ||
cy.get('#scheduled-payments-table') | ||
.find('tbody') | ||
.find('tr') | ||
.should('have.length.at.least', 0) | ||
}) | ||
}) |
Oops, something went wrong.