From 2227befdb8e88fe10d414bf934db21ec06997055 Mon Sep 17 00:00:00 2001 From: Clare So Date: Wed, 28 Feb 2024 01:19:01 -0500 Subject: [PATCH 1/3] Add testrail links --- focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift b/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift index d81ceeed2e..9548dca666 100644 --- a/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift +++ b/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift @@ -5,18 +5,22 @@ 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/1707743 func testDuckDuckGoSearchProvider() { searchProviderTestHelper(provider: "DuckDuckGo") } + // https://testrail.stage.mozaws.net/index.php?/cases/view/1707743 func testWikipediaSearchProvider() { searchProviderTestHelper(provider: "Wikipedia") } + // https://testrail.stage.mozaws.net/index.php?/cases/view/1707743 func testAmazonSearchProvider() { searchProviderTestHelper(provider: "Amazon.com") } @@ -68,6 +72,7 @@ class SearchProviderTest: BaseTestCase { } } + // https://testrail.stage.mozaws.net/index.php?/cases/view/1707744 func testAddRemoveCustomSearchProvider() { dismissURLBarFocused() waitForExistence(app.buttons["HomeView.settingsButton"], timeout: 10) @@ -107,6 +112,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) From 7c15947162041962d1bbdb854dd65a8326f31e4b Mon Sep 17 00:00:00 2001 From: Clare So Date: Wed, 28 Feb 2024 01:19:07 -0500 Subject: [PATCH 2/3] empty commit From b9b623be0803dd47cbe2d2e1443e762ca537ccd5 Mon Sep 17 00:00:00 2001 From: Clare So Date: Mon, 4 Mar 2024 18:14:40 -0500 Subject: [PATCH 3/3] Maps existing automated tests to TestRail --- .../focus-ios-tests/XCUITest/SearchProviderTest.swift | 7 ++++--- .../focus-ios-tests/XCUITest/SearchSuggestionsTest.swift | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift b/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift index 9548dca666..5e021f573e 100644 --- a/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift +++ b/focus-ios/focus-ios-tests/XCUITest/SearchProviderTest.swift @@ -10,21 +10,22 @@ class SearchProviderTest: BaseTestCase { searchProviderTestHelper(provider: "Google") } - // https://testrail.stage.mozaws.net/index.php?/cases/view/1707743 + // https://testrail.stage.mozaws.net/index.php?/cases/view/2512720 func testDuckDuckGoSearchProvider() { searchProviderTestHelper(provider: "DuckDuckGo") } - // https://testrail.stage.mozaws.net/index.php?/cases/view/1707743 + // https://testrail.stage.mozaws.net/index.php?/cases/view/2512721 func testWikipediaSearchProvider() { searchProviderTestHelper(provider: "Wikipedia") } - // https://testrail.stage.mozaws.net/index.php?/cases/view/1707743 + // 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() diff --git a/focus-ios/focus-ios-tests/XCUITest/SearchSuggestionsTest.swift b/focus-ios/focus-ios-tests/XCUITest/SearchSuggestionsTest.swift index bff309e262..7cd6b2db2d 100644 --- a/focus-ios/focus-ios-tests/XCUITest/SearchSuggestionsTest.swift +++ b/focus-ios/focus-ios-tests/XCUITest/SearchSuggestionsTest.swift @@ -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() @@ -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() @@ -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() @@ -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()