Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Refactor MTE-2309 [v125] TestRail and SearchProviderTest/SearchSugges…
Browse files Browse the repository at this point in the history
…tionsTest (#4064)

* Add testrail links

* empty commit

* Maps existing automated tests to TestRail
  • Loading branch information
clarmso authored Mar 5, 2024
1 parent 25765c1 commit a283252
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift
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 a283252

Please sign in to comment.