Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/sprint 57 -> test #2582

Open
wants to merge 59 commits into
base: release/test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
8e01c06
Adds Access Control Allowed Origin headers
Elaine-Krauss-TCG Feb 18, 2025
bac35a2
Updates deploy logic
Elaine-Krauss-TCG Feb 18, 2025
dcffbdf
Reverts deploy logic
Elaine-Krauss-TCG Feb 19, 2025
2b0f9af
Merge branch 'develop' into feature/2004-acao-header
Elaine-Krauss-TCG Feb 19, 2025
69b0c1d
Clear download tray on page navigation
sasha-dresden Feb 25, 2025
f94e5a8
Merge pull request #2560 from fecgov/release/sprint-56
toddlees Feb 26, 2025
6cbfd0e
FECFILE-1985: Basic additions to support Schedule F.
danguyf Feb 26, 2025
9ae20f3
correct status endpoint
toddlees Feb 27, 2025
945fd9d
Merge pull request #2564 from fecgov/fix-e2e-container
lbeaufort Feb 27, 2025
70e635a
Update download tray so it hides when you leave reports page and retu…
sasha-dresden Feb 27, 2025
4d96c18
FECFILE-1985: Additional updates to support Schedule F.
danguyf Feb 28, 2025
7bd1b46
Merge pull request #2559 from fecgov/feature/2039
toddlees Feb 28, 2025
5069ee7
FECFILE-1985: Remaining updates to support Schedule F.
danguyf Feb 28, 2025
2e7a889
Fix Feb issue with dates and simplify getCoverageDatesFunction
sasha-dresden Feb 28, 2025
db512b6
FECFILE-1985: Cleaning up updates to support Schedule F.
danguyf Feb 28, 2025
b3a6459
Merge remote-tracking branch 'origin/develop' into feature/1985-Sched…
danguyf Feb 28, 2025
97204e4
FECFILE-1985: Updated fecfile-validate hash to develop branch head.
danguyf Feb 28, 2025
2d398d4
WIP, fixes aggregate calculation w/in transaction, but might cause si…
Elaine-Krauss-TCG Feb 28, 2025
db6992a
Removes unused import
Elaine-Krauss-TCG Feb 28, 2025
a3c8772
Removes unused lint-ignore
Elaine-Krauss-TCG Feb 28, 2025
99a77ea
FECFILE-1985: Minor linting.
danguyf Mar 3, 2025
aa82b1a
FECFILE-1985: Added AggregationGroups back in.
danguyf Mar 3, 2025
58dcaea
FECFILE-1985: Moved AggregationGroups to the right place.
danguyf Mar 3, 2025
24643af
2001 cf cli upgrade
dheitzer Mar 3, 2025
7e4724a
Adds unit testing for requesting a previous transaction
Elaine-Krauss-TCG Mar 3, 2025
3f1e6f3
Removes console.log calls
Elaine-Krauss-TCG Mar 3, 2025
e1f9927
Updates ACAO header to null
Elaine-Krauss-TCG Mar 3, 2025
956183c
Updates the second header statement to null
Elaine-Krauss-TCG Mar 3, 2025
361d0e6
Adds a new E2E test that tests the aggregate field on transaction forms
Elaine-Krauss-TCG Mar 3, 2025
f4c6d04
Merge pull request #2568 from fecgov/feature/2062
toddlees Mar 3, 2025
1be16fa
Merge pull request #2571 from fecgov/feature/2001
toddlees Mar 3, 2025
08a595a
Merge branch 'develop' into feature/2004-acao-header
Elaine-Krauss-TCG Mar 3, 2025
25a6bdd
Make schedule E transactions auto-populate treasurer info into signat…
sasha-dresden Mar 4, 2025
7ffc1a7
handleShowAggregate is no longer an async function
Elaine-Krauss-TCG Mar 5, 2025
60be3d0
Re-enables E2E tests that had been disabled for fast local testing
Elaine-Krauss-TCG Mar 5, 2025
16e77d0
Merge pull request #2541 from fecgov/feature/2004-acao-header
toddlees Mar 5, 2025
4810583
1942 remove checker
dheitzer Mar 5, 2025
e8cfd33
Merge pull request #2576 from fecgov/feature/1942
toddlees Mar 5, 2025
2788937
Aggregate value is updated even when previous transaction is undefined
Elaine-Krauss-TCG Mar 5, 2025
656f8bd
Expands the new unit test to check that the aggregate field updates e…
Elaine-Krauss-TCG Mar 5, 2025
80005a7
lint and xit tests until transaction type exists
toddlees Mar 6, 2025
2cd423b
lint
toddlees Mar 6, 2025
2d88abf
Merge pull request #2570 from fecgov/feature/2044-fix-aggregates
toddlees Mar 6, 2025
88fb83c
Merge branch 'develop' into feature/593
toddlees Mar 6, 2025
531ff3e
don't recommend merge conflict resolution in browser
toddlees Mar 6, 2025
246ff5c
Merge pull request #2569 from fecgov/feature/1985-SchedF-Angular-model
toddlees Mar 6, 2025
8008aef
Merge pull request #2575 from fecgov/feature/593
toddlees Mar 6, 2025
c749b01
Don't autopopulate treasurer if signatory last name already present i…
Mar 6, 2025
8a1b94b
Merge pull request #2584 from fecgov/feature/593-1
toddlees Mar 6, 2025
4695373
Replace code custom to Sch E and utilize the pre-existing populateSig…
Mar 6, 2025
ae750e2
Merge branch 'release/sprint-57' into feature/593-2
toddlees Mar 6, 2025
664f0d5
Merge pull request #2588 from fecgov/feature/593-2
toddlees Mar 6, 2025
11f1ef9
emit initial date value on existing transction load
toddlees Mar 6, 2025
25badfd
comment
toddlees Mar 6, 2025
5424c5b
Merge pull request #2591 from fecgov/feature/2044-2
toddlees Mar 7, 2025
ad87654
enable combinelatestwith by providing startswith
toddlees Mar 7, 2025
842bc12
lint
toddlees Mar 7, 2025
625abb5
i need to learn how to use eslint comments
toddlees Mar 7, 2025
1b80e15
Merge pull request #2593 from fecgov/2044/contact-change
toddlees Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
DB_DOCKERFILE="Dockerfile-e2e" WORKER_DOCKERFILE="Worker_Dockerfile-e2e" API_DOCKERFILE="Dockerfile-e2e" FECFILE_TEST_DB_NAME="postgres" DJANGO_SECRET_KEY=${E2E_DJANGO_SECRET_KEY} DATABASE_URL=${E2E_DATABASE_URL} FEC_API=${E2E_FEC_API} FEC_API_KEY=${E2E_FEC_API_KEY} MOCK_EFO="True" docker-compose up --build -d
docker container run --network container:fecfile-api-proxy \
docker.io/jwilder/dockerize \
-wait http://localhost:8080/api/v1/status/ \
-wait http://localhost:8080/devops/status/ \
-wait-retry-interval 2s \
-timeout 60s; \
working_directory: ~/project/fecfile-web-api
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
command: |
mkdir -p $HOME/bin
export PATH=$HOME/bin:$PATH
curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&version=7.3.0" | tar xzv -C $HOME/bin
curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&version=7.8.0" | tar xzv -C $HOME/bin

- run:
name: run deploy script
Expand Down
2 changes: 2 additions & 0 deletions deploy-config/front-end-nginx-config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ http {
index index.html index.htm Default.htm;
location = /index.html {
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin null;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'nonce-$request_id'; style-src 'self' 'nonce-$request_id'; connect-src 'self' https://dev-api.fecfile.fec.gov https://stage-api.fecfile.fec.gov https://test-api.fecfile.fec.gov https://api.fecfile.fec.gov; frame-ancestors 'none'; object-src 'none'";

sub_filter_once off;
Expand All @@ -30,6 +31,7 @@ http {
}
location / {
try_files $uri $uri/ /index.html;
add_header Access-Control-Allow-Origin null;
}
}
}
55 changes: 55 additions & 0 deletions front-end/cypress/e2e/F3X/receipts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,59 @@ describe('Receipt Transactions', () => {
);
PageUtils.clickButton('Cancel');
});

it('calculates the aggregate amount within a transaction form', () => {
F3XSetup();

// Create the first Individual Receipt
StartTransaction.Receipts().Individual().IndividualReceipt();

PageUtils.clickLink('Create a new contact');
const individualFormContactData = {
...defaultContactFormData,
...{ contact_type: 'Individual' },
};
ContactListPage.enterFormData(individualFormContactData, true);
PageUtils.clickButton('Save & continue');

const transactionOneData = {
...formTransactionDataForSchedule,
...{
purpose_description: '',
category_code: '',
date_received: new Date(currentYear, 3, 27),
},
};
TransactionDetailPage.enterScheduleFormData(transactionOneData, false, '', true, 'contribution_date');
PageUtils.clickButton('Save');
cy.contains('Confirm').should('exist');
PageUtils.clickButton('Continue', '', true);

cy.contains('Transactions in this report').should('exist');

// Create the second Individual Receipt
StartTransaction.Receipts().Individual().IndividualReceipt();
cy.get('[id="searchBox"]').type(defaultContactFormData['last_name'].slice(0, 1));
cy.contains(defaultContactFormData['last_name']).should('exist');
cy.contains(defaultContactFormData['last_name']).click({ force: true });

const transactionTwoData = {
...formTransactionDataForSchedule,
...{
purpose_description: '',
category_code: '',
date_received: new Date(currentYear, 3, 28),
amount: 25,
},
};
TransactionDetailPage.enterScheduleFormData(transactionTwoData, false, '', true, 'contribution_date');
cy.get('h1').click(); // clicking outside of fields to ensure that the amount field loses focus and updates

cy.get('[id=aggregate]').should('have.value', '$225.01');

TransactionDetailPage.enterDate('[data-cy="contribution_date"]', new Date(currentYear, 3, 26), '');
cy.get('h1').click(); // clicking outside of fields to ensure that the amount field loses focus and updates

cy.get('[id=aggregate]').should('have.value', '$25.00');
});
});
Loading