Add editable themes and make web diagnostics visible

This commit is contained in:
Mark Gregory
2026-11-16 16:57:00 +00:00
parent de18d95741
commit 74c726e2d5
3 changed files with 175 additions and 21 deletions
+10
View File
@@ -636,6 +636,16 @@ final class ToolboxRepairTests: XCTestCase {
XCTAssertTrue(followed.reference.contains("/follow-detail"))
}
func testLiveDefaultSearchRetrievesPages() async throws {
guard let query = ProcessInfo.processInfo.environment["AISTUDIO_TEST_REAL_WEB_QUERY"] else {
throw XCTSkip("Set AISTUDIO_TEST_REAL_WEB_QUERY to check live search and retrieval.")
}
let lookup = try XCTUnwrap(ChatWebLookup(message: "Can you look up " + query))
let result = try await lookup.resolve(searchEndpoint: "")
XCTAssertTrue(result.reference.contains("Source: https://"), result.status)
XCTAssertTrue(result.diagnostics.contains { $0.hasPrefix("Fetched ") }, result.status)
}
func testLiveLaravelRetrieval() async throws {
guard let address = ProcessInfo.processInfo.environment["AISTUDIO_TEST_REAL_WEB_PAGE"] else {
throw XCTSkip("Set AISTUDIO_TEST_REAL_WEB_PAGE to check a real page.")