-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve merge conflicts (merge HHS:main into adhoc:main) (#484)
* Bump validator from 13.6.0 to 13.7.0 Bumps [validator](https://github.com/validatorjs/validator.js) from 13.6.0 to 13.7.0. - [Release notes](https://github.com/validatorjs/validator.js/releases) - [Changelog](https://github.com/validatorjs/validator.js/blob/master/CHANGELOG.md) - [Commits](validatorjs/validator.js@13.6.0...13.7.0) --- updated-dependencies: - dependency-name: validator dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * welcoming robots in certain situations * Update known vulnerabilities * trying a different approach in the config * is this how we set vars? * fix var name * test on dev since sandbox does not do what I thought * need to learn how to do bash * more bash better * for christmas sake * testing complete * fix bash script var names * move logic to circlci config * awaken robot on prod * Update .circleci/config.yml Co-authored-by: Josh Salisbury <[email protected]> * add approvedat migration * update approvedAt on approval * clean up constants, add new one * add approved and created dates to fe landing page * add approved and created date to csv download * remove console statement * fixing tests * partial fixes for ui tests * clean up prop type * cleanup UI tests * add backend tests * add target populations to ar * add approved and created date to ar, table css fixes * fix failing ui test * fix failing tooltip test * update known issues * Update known vulnerabilities * fix capitalizations while we're here * fix css bug w/checkboxes * update ignored FE vulns * writing FE tests * working on more tests * provide some missing UI tests Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: unknown <[email protected]> Co-authored-by: Josh Salisbury <[email protected]>
- Loading branch information
1 parent
46480e2
commit 97a8eae
Showing
35 changed files
with
275 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo 'Setting site to be indexable in robots.txt' | ||
|
||
cat >frontend/public/robots.txt <<EOL | ||
# Welcome Robots | ||
User-agent: * | ||
Disallow: | ||
EOL |
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,3 +1,6 @@ | ||
# we disallow everything by default | ||
# in production, we allow indexing by removing the slash from the disallow | ||
|
||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: | ||
Disallow: / |
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
55 changes: 55 additions & 0 deletions
55
frontend/src/components/ActivityReportsTable/__tests__/ReportRow.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,55 @@ | ||
import '@testing-library/jest-dom'; | ||
import React from 'react'; | ||
import { | ||
render, screen, | ||
} from '@testing-library/react'; | ||
import userEvent from '@testing-library/user-event'; | ||
import { Router } from 'react-router'; | ||
import { createMemoryHistory } from 'history'; | ||
import ReportRow from '../ReportRow'; | ||
import { generateXFakeReports } from '../mocks'; | ||
|
||
const history = createMemoryHistory(); | ||
|
||
const [report] = generateXFakeReports(1); | ||
|
||
describe('ReportRow', () => { | ||
const renderReportRow = () => ( | ||
render( | ||
<Router history={history}> | ||
<ReportRow | ||
report={report} | ||
openMenuUp={false} | ||
handleReportSelect={jest.fn()} | ||
isChecked={false} | ||
/> | ||
</Router>, | ||
) | ||
); | ||
|
||
beforeAll(async () => { | ||
global.navigator.clipboard = jest.fn(); | ||
global.navigator.clipboard.writeText = jest.fn(() => Promise.resolve()); | ||
}); | ||
|
||
afterAll(() => { | ||
delete global.navigator; | ||
}); | ||
|
||
it('the view link works', async () => { | ||
history.push = jest.fn(); | ||
renderReportRow(); | ||
userEvent.click(await screen.findByRole('button', { name: 'Actions for activity report R14-AR-1' })); | ||
userEvent.click(await screen.findByRole('button', { name: /view/i })); | ||
|
||
expect(history.push).toHaveBeenCalled(); | ||
}); | ||
|
||
it('you can copy', async () => { | ||
renderReportRow(); | ||
userEvent.click(await screen.findByRole('button', { name: 'Actions for activity report R14-AR-1' })); | ||
userEvent.click(await screen.findByRole('button', { name: /copy url/i })); | ||
|
||
expect(navigator.clipboard.writeText).toHaveBeenCalled(); | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.usa-table-container--scrollable { | ||
.usa-table-container--scrollable, | ||
.usa-checkbox__label { | ||
margin-top: 0px; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,8 @@ | |
height: 1px; | ||
margin: 1em auto; | ||
width: 100%; | ||
} | ||
|
||
.smart-hub--checkbox-select label { | ||
margin-top: 0.75em; | ||
} |
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
Oops, something went wrong.