Skip to content

Commit 1141c06

Browse files
committed
Refactor test to open a few tabs
1 parent 41c26a4 commit 1141c06

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

firefox-ios/Client.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11609,13 +11609,13 @@
1160911609
3BFE4B081D342FB900DDF53F /* XCUITests */ = {
1161011610
isa = PBXGroup;
1161111611
children = (
11612-
211FD2742DF38106003F60EF /* CookiePersistenceTests.swift */,
1161311612
3B546EBF1D95ECAE00BDBE36 /* ActivityStreamTest.swift */,
1161411613
B1E156A52CD5080E009DF9E5 /* C_AddressesTests.swift */,
1161511614
0B3D670D1E09B90B00C1EFC7 /* AuthenticationTest.swift */,
1161611615
0B305E1A1E3A98A900BE0767 /* BookmarksTests.swift */,
1161711616
2CF9D9A920067FA10083DF2A /* BrowsingPDFTests.swift */,
1161811617
3D9CAA1B1EFCD655002434DD /* ClipBoardTests.swift */,
11618+
211FD2742DF38106003F60EF /* CookiePersistenceTests.swift */,
1161911619
B1664E9D2B163B7A005D4C71 /* CreditCardsTests.swift */,
1162011620
EB3A38912032673D004C6E67 /* DatabaseFixtureTest.swift */,
1162111621
580B0C4121748CFE00448DF8 /* DataManagementTests.swift */,

firefox-ios/firefox-ios-tests/Tests/XCUITests/CookiePersistenceTests.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import XCTest
66

77
final class CookiePersistenceTests: BaseTestCase {
88
let cookieSiteURL = "http://localhost:\(serverPort)/test-fixture/test-cookie-store.html"
9-
let websites = ["mozilla.org", "wikipedia", "reddit"]
9+
let websites = ["http://mozilla.org",
10+
"http://wikipedia",
11+
"http://reddit.com"]
1012

1113
override func setUp() {
1214
// Fresh install the app
@@ -52,11 +54,12 @@ final class CookiePersistenceTests: BaseTestCase {
5254
mozWaitForElementToExist(webview.staticTexts["LOGGED_IN"])
5355

5456
// Open a few tabs
55-
websites.forEach { searchText in
57+
websites.forEach { website in
5658
navigator.performAction(Action.OpenNewTabFromTabTray)
5759
navigator.nowAt(NewTabScreen)
58-
59-
typeOnSearchBar(text: searchText)
60+
navigator.openURL(website)
61+
waitUntilPageLoad()
62+
navigator.nowAt(BrowserTab)
6063
}
6164

6265
// Relaunch app

0 commit comments

Comments
 (0)