Add editable themes and make web diagnostics visible
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user