mirror of https://github.com/Wox-launcher/Wox
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:
parent
f6dff901c2
commit
38a531735c
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue