Commit Graph

4631 Commits

Author SHA1 Message Date
Carlo Costino
7163f813ce Fix malformed tuples
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
35ecd7006a Finally finished linting all the tests!
...Now to fix the ones I broke... :lolsob:

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
f5a5fbc926 Updated more tests with linting fixes
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
9a4afe44bb More test config updates
Note that this commit has some failing tests with it that also needed to be fixed; it is unclear why they are failing at the moment, though.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:00 -04:00
Carlo Costino
d2411e6cbe Updated a few more tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:49 -04:00
Carlo Costino
9031d0cb97 A few more tests taken care of.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:49 -04:00
Carlo Costino
acb70b43cd Reformatted and cleaned up more tests.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
72c8a46b8c Reformatted a handful more tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
23f894581c More test cleanup
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
06fab2dd03 Ignoring two specific warnings about wrong values type
The test makes use of list item unpacking and expects the parameter data structure to allow for that.  It does not make sense to modify the code in this case just to make test format linting pass.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
95ba7c3099 More formatting fixes for tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
47695b97d3 Address flake8-pytest-style issues with conftest.py
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
a46a21a519 Revert recent changes for window location updates
There are a few other things at play that will require more investigation at a future date:

- Why window.location.assign() or history.pushState() do not work
- If any other config or polyfills are needed with JSDOM

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:00:30 -04:00
Andrew Shumway
76f9c5e6ab Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-10-10 11:00:37 -06:00
Jonathan Bobel
57ec11d7c5 816 - Change "Prepare to send" button text 2023-10-06 13:13:18 -04:00
Carlo Costino
124d342b39 Merge pull request #846 from GSA/822-restrict-international-message-service
822 - restrict international message services
2023-10-06 12:18:17 -04:00
Jonathan Bobel
afe6e9c11a 822 - restrict international message services 2023-10-04 14:40:21 -04:00
Andrew Shumway
643e1ef1b6 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-10-03 14:37:04 -06:00
Carlo Costino
838f643b18 Merge pull request #845 from GSA/821-remove-table-header
821 - removing a few headers and adjusting the tests
2023-10-03 16:08:51 -04:00
Jonathan Bobel
fefa8288c4 821 - removing a few headers and adjusting the tests to accept an empty string 2023-10-03 15:28:27 -04:00
Jonathan Bobel
154b8fd8f3 Merge branch 'main' of https://github.com/GSA/notifications-admin into 835-new-template-wording 2023-10-03 14:30:34 -04:00
Jonathan Bobel
d6205bc1ff 835 - Change "new template" wording 2023-10-03 11:14:21 -04:00
Andrew Shumway
93ac55ce35 Separate logout by user or inactivity 2023-10-02 15:20:23 -06:00
Andrew Shumway
00db493305 Clean up code/tests 2023-10-02 14:48:35 -06:00
Jonathan Bobel
c7e05246b1 808 - formatted annual usage section 2023-10-02 15:12:36 -04:00
Andrew Shumway
020dc871f7 Added test for code coverage 2023-10-02 09:18:30 -06:00
Carlo Costino
57f2ee798b Made several adjustments for session timer tests
- Turned the timeoutPopup module into a proper module that is exported
- Pulled out the setInterval inner function to be its own method
- Adjusted the session timer tests to have additional setup and teardown pieces
- Added a few tests

There may be some additional adjustments needed, e.g., we may not have to expose all of the methods, but then we have to figure out how to make them accessible in the tests another way.

h/t @A-Shumway42 for pairing with me to review all of these changes and approach!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-28 15:31:08 -04:00
Andrew Shumway
8ab49f72ae Remove unused function in test 2023-09-27 11:47:52 -06:00
Andrew Shumway
9846379c0f Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-09-27 11:15:46 -06:00
Kenneth Kehl
1d66533111 merge from main and resolve conflicts 2023-09-22 12:37:32 -07:00
Kenneth Kehl
5bc752a826 fix tests 2023-09-22 10:05:50 -07:00
Carlo Costino
02891b9b36 Merge pull request #784 from GSA/notify-admin-769
notify-admin-652 create new service does not work in demo
2023-09-21 11:48:46 -04:00
Jonathan Bobel
54eb8df9f7 - Added new flag imagery for favicon and related images
- Removed preloaded fonts - legacy UK site stuff
- Added the ability to run pa11y scan with npm run pa11y-ci
2023-09-20 13:52:54 -04:00
Kenneth Kehl
e3490691d3 notify-admin-762 fix tests 2023-09-19 14:30:32 -07:00
Kenneth Kehl
ab71be0246 merge from main 2023-09-19 10:31:33 -07:00
Carlo Costino
10d207eac4 Merge pull request #779 from GSA/778-dashboard-button-unstyled
Styling update to fix broken link when status is failing
2023-09-18 17:38:02 -04:00
Carlo Costino
5683c50cc4 Merge pull request #773 from GSA/notify-762
Notify 762 - Redirect notify.gov to beta.notify.gov
2023-09-18 17:26:20 -04:00
Carlo Costino
3110189402 Fix test style issues
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-18 16:18:48 -04:00
Carlo Costino
d02d2de9dc Made a few adjustments to test the beta redirect:
- Explicitly return the redirect
- Change the redirect to be a 302 instead of 301
- Adjusted the test client to allow sub domains
- Added the remaining tests

A big thank you to @A-Shumway42 for getting this work underway!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-18 15:59:28 -04:00
Jonathan Bobel
a752566e2f Fixed a test 2023-09-18 12:29:40 -04:00
Andrew Shumway
15123f06f9 Removed import 2023-09-18 06:33:26 -06:00
Andrew Shumway
118fd13189 Refactor code. Tests still failing 2023-09-18 06:24:17 -06:00
Jonathan Bobel
3ed4af79c7 Small content change for this test 2023-09-15 14:55:01 -04:00
Andrew Shumway
068663ec1a Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-762 2023-09-14 15:00:10 -06:00
Andrew Shumway
e22386e91b Redirect implemented with tests coverage 2023-09-14 14:59:48 -06:00
Andrew Shumway
d856e39484 Create export of session timer for tests 2023-09-14 08:56:46 -06:00
Kenneth Kehl
0218ffd9ba notify-admin-761 remove basic auth 2023-09-14 07:47:38 -07:00
Kenneth Kehl
e2b82991af code review feedback 2023-09-13 13:47:43 -07:00
Kenneth Kehl
91f1790c89 fix up 2023-09-13 12:16:43 -07:00
Andrew Shumway
f257a38084 Refactor code/initial tests 2023-09-13 12:44:40 -06:00