Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
import XCTest
class AsianLocaleTest: BaseTestCase {
let locales: [String: String] = [
"Korean": "모질라",
"Japanese": "モジラ",
"Chinese": "因特網"
]
func searchForMozillaInLocale(localeName: String, searchText: String) {
let urlBarDeleteButton = app.eraseButton
search(searchWord: searchText, waitForLoadToFinish: true)
mozTap(urlBarDeleteButton)
dismissURLBarFocused()
checkForHomeScreen()
}
func testSearchInLocale() {
// Test Setup
dismissURLBarFocused()
checkForHomeScreen()
navigateToSettingSearchEngine()
setDefaultSearchEngine(searchEngine: "Google")
// Test Steps
for (localeName, searchText) in locales {
searchForMozillaInLocale(localeName: localeName, searchText: searchText)
}
}
}