diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-10 14:34:44 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-10 14:34:44 -0600 |
| commit | a4292509614b3349c40a432a6492d4d56bc841af (patch) | |
| tree | 20a169a93ea18299d03e630a183ab6019ec039ec /test | |
| parent | a3a057ba28a14973dc346655d92648bb1fd69209 (diff) | |
test: check the parsed saml response
Diffstat (limited to 'test')
| -rw-r--r-- | test/e2e_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e_test.go b/test/e2e_test.go index c25a4f8..14648ec 100644 --- a/test/e2e_test.go +++ b/test/e2e_test.go @@ -44,6 +44,11 @@ func TestHelloWorld(t *testing.T) { action := x.Must(page.Locator("#idp-form").GetAttribute("action")) assert.Equal(t, "http://idp.example.com:8080/saml/new", action) assert.NoError(t, page.Locator("#submit-button").Click()) + + action = x.Must(page.Locator("#postback-form").GetAttribute("action")) + assert.Equal(t, "http://ui.example.com:8080/saml/assertions", action) + assert.NoError(t, page.Locator("#submit-button").Click()) + assert.Contains(t, x.Must(page.Content()), "Received SAML Response") }) }) }) |
