Skip to content

Commit

Permalink
Merge pull request #13767 from transcom/B-20616-Adding-Test-Check
Browse files Browse the repository at this point in the history
add in main test checks
  • Loading branch information
KonstanceH authored Sep 26, 2024
2 parents fcf22f8 + 0ed8f15 commit 655b6ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ jobs:
#
# The trailing hyphen in restore_cache seems important
# according to the page linked above
- v8-server-tests-coverage-
- v9-server-tests-coverage-
- run:
name: Ensure Test Coverage Increasing
command: |
Expand Down Expand Up @@ -1553,7 +1553,7 @@ jobs:
# Use the BuildNum to update the cache key so that the
# coverage cache is always updated
- save_cache:
key: v7-server-tests-coverage-{{ .BuildNum }}
key: v9-server-tests-coverage-{{ .BuildNum }}
paths:
- ~/transcom/mymove/tmp/baseline-go-coverage
when: always
Expand Down Expand Up @@ -1631,7 +1631,7 @@ jobs:
# The trailing hyphen in restore_cache seems important
# according to the page linked above
keys:
- v6-client-tests-coverage-
- v7-client-tests-coverage-
- run:
name: Ensure Test Coverage Increasing
command: |
Expand Down Expand Up @@ -1683,7 +1683,7 @@ jobs:
# Use the BuildNum to update the cache key so that the
# coverage cache is always updated
- save_cache:
key: v5-client-tests-coverage-{{ .BuildNum }}
key: v7-client-tests-coverage-{{ .BuildNum }}
paths:
- ~/transcom/mymove/tmp/baseline-jest-coverage
when: always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe('MobileHomeShipmentCard component', () => {
it('renders component with all fields', () => {
render(<MobileHomeShipmentCard {...defaultProps} />);

expect(screen.getAllByTestId('ShipmentCardNumber').length).toBe(1);
expect(screen.getByRole('heading', { level: 3 })).toHaveTextContent('Mobile Home 1');
expect(screen.getByText(/^#testMove123-01$/, { selector: 'p' })).toBeInTheDocument();

Expand Down Expand Up @@ -133,6 +134,7 @@ describe('MobileHomeShipmentCard component', () => {
expect(screen.getByTitle('Help about incomplete shipment')).toBeInTheDocument();

await userEvent.click(screen.getByTitle('Help about incomplete shipment'));
expect(screen.getAllByTestId('ShipmentCardNumber').length).toBe(1);

expect(incompleteShipmentProps.onIncompleteClick).toHaveBeenCalledWith(
'Mobile Home 1',
Expand Down

0 comments on commit 655b6ab

Please sign in to comment.