cfpb / hmda-frontend

Collection of HMDA frontend apps
Creative Commons Zero v1.0 Universal
12 stars 15 forks source link

[Cypress] Fix failing tests #2152

Closed Michaeldremy closed 4 months ago

Michaeldremy commented 4 months ago

There are a few Cypress tests that are failing. Created a ticket to track the failing tests.

~ Keycloak was recently updated and with that update it has started to append #iss=https%3A%2F%2Fffiec.cfpb.gov%2Fauth%2Frealms%2Fhmda2 to the URL. The test is using Regex and due to that Regex it fails because of the extra stuff added to the URL - Test has been fixed by no longer doing a hard match on the URL but rather ensuring the year from the URL is included in our opened filing periods

~~ When running test against production the test passes but the Cypress test runner is showing that the test is failing with the following error expected '<td>' to contain '2023' . The same error is successful when running again production - Test passed last night following an update to the Cypress Docker Image