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

Refactor MTE-2309 [v125] TestRail and SearchProviderTest/SearchSuggestionsTest #4064

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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