1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Make the upstream provider URL better display & fix test

This commit is contained in:
Quentin Gliech
2023-10-30 14:05:18 +01:00
parent f734d9c21f
commit 6d65bcae13
4 changed files with 20 additions and 13 deletions

View File

@ -388,15 +388,11 @@ mod test {
let response = state.request(Request::get("/login").empty()).await;
response.assert_status(StatusCode::OK);
response.assert_header_value(CONTENT_TYPE, "text/html; charset=utf-8");
assert!(response
.body()
.contains(&escape_html(&first_provider.issuer)));
assert!(response.body().contains(&escape_html("first.com/")));
assert!(response
.body()
.contains(&escape_html(&first_provider_login.path_and_query())));
assert!(response
.body()
.contains(&escape_html(&second_provider.issuer)));
assert!(response.body().contains(&escape_html("second.com/")));
assert!(response
.body()
.contains(&escape_html(&second_provider_login.path_and_query())));