Commit Graph

23 Commits

Author SHA1 Message Date
Carlo Costino
1aa2501d1d Adjust E2E test fixtures
This changeset adjusts the scope of the end-to-end (E2E) test fixtures so that they behave as intended and we have truly isolated tests.  We may adjust these again in the future depending on our needs, but for right now this will hopefully keep things simple for us as we start to build out an E2E test library.

Thank you, @terrazoon, for flagging this!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-25 12:08:34 -04:00
Carlo Costino
564fc73521 Fixed up documentation to match current state; blackened formatting
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:38:47 -05:00
Carlo Costino
5c6a23c873 Undo changes to the landing page test
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:10:41 -05:00
Carlo Costino
c891bc1b3f Another attempt at fixing the landing page test
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:02:18 -05:00
Carlo Costino
34d20c4d65 Trying to get landing page test working again
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 16:53:39 -05:00
Carlo Costino
e71351d949 Add E2E documentation and clean E2E tests
This changeset adds additional documentation for how to write new E2E tests and cleans up the two existing tests slightly to make better use of the fixtures that are defined.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 16:02:16 -05:00
Carlo Costino
4741b381c2 Adjusting authenticated page fixture
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:39:14 -05:00
Carlo Costino
4180dca164 Last bits of cleanup with pytest configuration for E2E tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:24:03 -05:00
Carlo Costino
1b6446e213 Added a new E2ETest config and adjusted a couple of things
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
e8e23e3ac0 A little more cleanup
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
997aa8e72f Added missing environment variables for the server process
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
c652c17617 Clean up and fix the E2E tests so that they run
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05: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
Kenneth Kehl
f813a403a9 fix tests to use env vars 2023-09-11 14:23:12 -07:00
Kenneth Kehl
c7de9dcf6a flake8 fixes 2023-09-08 14:12:23 -07:00
Kenneth Kehl
863625de6a fix test_create_new_service_workflow 2023-09-08 13:55:56 -07:00
Kenneth Kehl
29ea098fd3 make some progress 2023-09-08 12:53:35 -07:00
Kenneth Kehl
cc8f8dfcc2 initial 2023-09-08 08:38:27 -07:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Carlo Costino
d79e15c2a1 Clean up state of E2E tests
This changeset takes care of leaving E2E tests in a clean state so that
we can revisit the work later.  The efforts to add authentication
support did not pan out, so we will go a different route in the near
future.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-24 15:31:21 -04:00
Jonathan Bobel
e1528a27b2 Seeing if this test change will let it pass 2023-07-28 14:11:03 -04:00
Carlo Costino
b5664c3d20 Add support for E2E (end-to-end) tests (#625)
This changeset lays the foundation for supporting E2E (end-to-end) integration tests for US Notify.  It brings in the Playwright testing framework along with the Playwright pytest plugin to make this possible, and includes the following adjustments:

- A new test session fixture for ensuring that Playwright authenticates with the sites that are currently behind HTTP Auth (requies env-var config)
- A new end_to_end test directory specifically for E2E tests
- Updates to the Makefile that make sure E2E tests are not run as a part of the normal test routine but can be run separately
- A new command in the Makefile to run E2E tests that will run in Chromium, Firefox, and Webkit headless browsers

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-07-28 09:31:45 -04:00