-
Notifications
You must be signed in to change notification settings - Fork 4
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 #474 from fecgov/feature/429-update-transaction-names
Rename transactions
- Loading branch information
Showing
11 changed files
with
57 additions
and
61 deletions.
There are no files selected for viewing
37 changes: 17 additions & 20 deletions
37
front-end/cypress/integration/sprint-10/sprint-10-test-347.spec.ts
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 |
---|---|---|
@@ -1,42 +1,39 @@ | ||
import { generateReportObject } from "../../support/generators/reports.spec"; | ||
import { generateTransactionObject } from "../../support/generators/transactions.spec"; | ||
import { createTransactionSchA } from "../../support/transactions.spec"; | ||
|
||
import { generateReportObject } from '../../support/generators/reports.spec'; | ||
import { generateTransactionObject } from '../../support/generators/transactions.spec'; | ||
import { createTransactionSchA } from '../../support/transactions.spec'; | ||
|
||
describe('QA Script 347 (Sprint 10)', () => { | ||
before('Logs in and creates a dummy report', () => { | ||
cy.login(); | ||
const report = generateReportObject(); | ||
cy.createReport(report); | ||
cy.get('p-button[icon="pi pi-pencil"]') | ||
.click(); | ||
cy.get('p-button[icon="pi pi-pencil"]').click(); | ||
cy.progressReport(); | ||
}); | ||
|
||
it(`Tests the summary page for a report`, ()=>{ | ||
it(`Tests the summary page for a report`, () => { | ||
const transactionTree = generateTransactionObject({ | ||
"TRANSFERS":{ | ||
"JF Transfers":{} | ||
} | ||
TRANSFERS: { | ||
'Joint Fundraising Transfer': {}, | ||
}, | ||
}); | ||
createTransactionSchA(transactionTree); | ||
cy.medWait(); | ||
const parentTransaction = transactionTree["TRANSFERS"]["JF Transfers"]; | ||
const childTransaction = parentTransaction["childTransactions"][0]; | ||
const childName = childTransaction["contributorOrganizationName"]; | ||
const parentTransaction = transactionTree['TRANSFERS']['Joint Fundraising Transfer']; | ||
const childTransaction = parentTransaction['childTransactions'][0]; | ||
const childName = childTransaction['contributorOrganizationName']; | ||
|
||
cy.contains("tr",parentTransaction["contributorOrganizationName"]) | ||
.find(">td") | ||
cy.contains('tr', parentTransaction['contributorOrganizationName']) | ||
.find('>td') | ||
.eq(6) | ||
.then(($td)=>{ | ||
.then(($td) => { | ||
const parentId = $td.text(); | ||
cy.contains("tr", childName).find("td").eq(7).should("have.text", parentId); | ||
cy.contains('tr', childName).find('td').eq(7).should('have.text', parentId); | ||
}); | ||
|
||
}); | ||
|
||
it("Cleanup", ()=>{ | ||
it('Cleanup', () => { | ||
cy.deleteAllReports(); | ||
cy.logout(); | ||
}); | ||
}); | ||
}); |
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