Skip to content

Commit

Permalink
[focus-ios] Refactor MTE-2309 [v125] TestRail and SearchProviderTest/…
Browse files Browse the repository at this point in the history
…SearchSuggestionsTest (mozilla-mobile/focus-ios#4064)

* Add testrail links

* empty commit

* Maps existing automated tests to TestRail
  • Loading branch information
clarmso authored Mar 5, 2024
1 parent 37469b5 commit c2fece3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,27 @@
import XCTest

class SearchProviderTest: BaseTestCase {
// https://testrail.stage.mozaws.net/index.php?/cases/view/1707743
func testGoogleSearchProvider() {
searchProviderTestHelper(provider: "Google")
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2512720
func testDuckDuckGoSearchProvider() {
searchProviderTestHelper(provider: "DuckDuckGo")
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2512721
func testWikipediaSearchProvider() {
searchProviderTestHelper(provider: "Wikipedia")
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2512722
func testAmazonSearchProvider() {
searchProviderTestHelper(provider: "Amazon.com")
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2524588
func testSearchQuery() {
searchQuery("test", provider: "Google")
dismissKeyboardFocusMenuSettings()
Expand Down Expand Up @@ -68,6 +73,7 @@ class SearchProviderTest: BaseTestCase {
}
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/1707744
func testAddRemoveCustomSearchProvider() {
dismissURLBarFocused()
waitForExistence(app.buttons["HomeView.settingsButton"], timeout: 10)
Expand Down Expand Up @@ -107,6 +113,7 @@ class SearchProviderTest: BaseTestCase {
app.navigationBars.buttons["edit"].tap()
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/1707745
func testPreventionOfRemovingDefaultSearchProvider() {
dismissURLBarFocused()
waitForExistence(app.buttons["HomeView.settingsButton"], timeout: 10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SearchSuggestionsPromptTest: BaseTestCase {
checkToggle(isOn: false)
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/1707746
func testEnableThroughPrompt() {
// Check search suggestions toggle is initially OFF
checkToggleStartsOff()
Expand Down Expand Up @@ -79,6 +80,7 @@ class SearchSuggestionsPromptTest: BaseTestCase {
checkToggle(isOn: true)
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2524590
func testDisableThroughPrompt() {
// Check search suggestions toggle is initially OFF
checkToggleStartsOff()
Expand Down Expand Up @@ -115,6 +117,7 @@ class SearchSuggestionsPromptTest: BaseTestCase {
checkToggle(isOn: false)
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2524591
func testEnableThroughToggle() {
// Check search suggestions toggle is initially OFF
checkToggleStartsOff()
Expand All @@ -137,6 +140,7 @@ class SearchSuggestionsPromptTest: BaseTestCase {
checkSuggestions()
}

// https://testrail.stage.mozaws.net/index.php?/cases/view/2524592
func testEnableThenDisable() {
// Check search suggestions toggle is initially OFF
checkToggleStartsOff()
Expand Down

0 comments on commit c2fece3

Please sign in to comment.