//! API contract for `root` context. use torrust_index_backend::web::api; use crate::common::asserts::{assert_response_title, assert_text_ok}; use crate::common::client::Client; use crate::e2e::environment::TestEnv; #[tokio::test] async fn it_should_load_the_about_page_at_the_api_entrypoint() { let mut env = TestEnv::new(); env.start(api::Version::V1).await; let client = Client::unauthenticated(&env.server_socket_addr().unwrap()); let response = client.root().await; assert_text_ok(&response); assert_response_title(&response, "About"); }