fix(test): fix title checks in `TestConverterCrypto` for consistency

* Changed title checks to reflect the updated search term "Search Google for".
* Ensures that expected titles in tests match the new search format.
This commit is contained in:
qianlifeng 2025-07-27 22:08:33 +08:00
parent f6dff901c2
commit 38a531735c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -79,13 +79,13 @@ func TestConverterCrypto(t *testing.T) {
ExpectedAction: "Search",
TitleCheck: func(title string) bool {
// More flexible check - should contain "Search for" and part of the query
return strings.Contains(title, "Search for") && strings.Contains(title, "1btc dsfsdf")
return strings.Contains(title, "Search Google for") && strings.Contains(title, "1btc dsfsdf")
},
},
{
Name: "BTC plus number",
Query: "1btc + 1",
ExpectedTitle: "Search for 1btc + 1",
ExpectedTitle: "Search Google for 1btc + 1",
ExpectedAction: "Search",
},
}