Skip to content

Commit

Permalink
Bugfix MTE-3781 Use of https in history and bookmarks (#22889)
Browse files Browse the repository at this point in the history
* Use https instead of http url

* Use https URL throughout the tests

* Revert username

* Put back http because of the database

* Use https URL in testFxASyncBookmark
  • Loading branch information
clarmso authored Nov 5, 2024
1 parent 76ee3e5 commit ee89f06
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var phases = { "phase1": "profile1" };
// expected bookmark state
var bookmarksExpected = {
"mobile": [{
uri: "http://www.example.com/",
uri: "https://www.example.com/",
title: "Example Domain"}]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var phases = { "phase1": "profile1" };
// expected bookmark state
var bookmarksCreated = {
"mobile": [{
uri: "http://www.example.com/",
uri: "https://www.example.com/",
title: "Example Domain"}]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var phases = { "phase1": "profile1" };
// expected bookmark state
var bookmarksCreated = {
"mobile": [{
uri: "http://www.example.com/",
uri: "https://www.example.com/",
title: "Example Domain"}]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var phases = { "phase1": "profile1" };

// expected history state
var historyCreated = [
{ uri: "http://www.example.com/",
{ uri: "https://www.example.com/",
visits: [
{ type: 1 ,
date: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var phases = { "phase1": "profile1" };

// expected tabs state
var tabs1 = [
{ uri: "http://example.com/",
{ uri: "https://example.com/",
profile: "Fennec (administrator) on iOS"
}
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var phases = { "phase1": "profile1", "phase2": "profile1" };


var tabs1 = [
{ uri: "http://example.com/",
{ uri: "https://example.com/",
profile: "Fennec on iOS"
}
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import Common
import XCTest

private let testingURL = "example.com"
private let testingURL = "https://example.com"
private let userName = "iosmztest"
private let userPassword = "test15mz"
private let historyItemSavedOnDesktop = "http://www.example.com/"
private let historyItemSavedOnDesktop = "https://www.example.com/"
private let loginEntry = "https://accounts.google.com"
private let tabOpenInDesktop = "http://example.com/"
private let tabOpenInDesktop = "https://example.com/"

class IntegrationTests: BaseTestCase {
let testWithDB = ["testFxASyncHistory"]
Expand Down Expand Up @@ -111,7 +111,7 @@ class IntegrationTests: BaseTestCase {
func testFxASyncBookmark () {
// Bookmark is added by the DB
// Sign into Mozilla Account
navigator.openURL("example.com")
navigator.openURL(testingURL)
mozWaitForElementToExist(app.buttons[AccessibilityIdentifiers.Toolbar.trackingProtection])
navigator.goto(BrowserTabMenu)
app.tables.otherElements[StandardImageIdentifiers.Large.bookmark].waitAndTap()
Expand Down

0 comments on commit ee89f06

Please sign in to comment.