display alert on requests index page when requests are pending CCPO approval

This commit is contained in:
dandds
2018-08-13 10:22:35 -04:00
parent 654f9231b5
commit 37bb0c5d30
3 changed files with 26 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ def test_submit_reviewed_request(monkeypatch, client, user_session):
follow_redirects=False,
)
assert "/requests" in response.headers["Location"]
assert "modal" not in response.headers["Location"]
assert "modal=pendingCCPOApproval" in response.headers["Location"]
def test_submit_autoapproved_reviewed_request(monkeypatch, client, user_session):
@@ -35,4 +35,4 @@ def test_submit_autoapproved_reviewed_request(monkeypatch, client, user_session)
data="",
follow_redirects=False,
)
assert "/requests?modal=" in response.headers["Location"]
assert "/requests?modal=pendingFinancialVerification" in response.headers["Location"]