Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1505735 - XCUITests Sync Integration Desktop-iOS History Tabs Log…
…ins (#4362)
- Loading branch information
1 parent
898fa2b
commit ad3e46c
Showing
5 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
/* | ||
* The list of phases mapped to their corresponding profiles. The object | ||
* here must be in strict JSON format, as it will get parsed by the Python | ||
* testrunner (no single quotes, extra comma's, etc). | ||
*/ | ||
EnableEngines(["history"]); | ||
|
||
var phases = { "phase1": "profile1" }; | ||
|
||
|
||
// expected history state | ||
var historyCreated = [ | ||
{ uri: "http://www.example.com/", | ||
visits: [ | ||
{ type: 1 , | ||
date: 0 | ||
}, | ||
{ type: 2, | ||
date: -1 | ||
} | ||
] | ||
} | ||
]; | ||
|
||
// sync and verify history | ||
Phase("phase1", [ | ||
[Sync], | ||
[History.add, historyCreated], | ||
[Sync] | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
/* | ||
* The list of phases mapped to their corresponding profiles. The object | ||
* here must be in strict JSON format, as it will get parsed by the Python | ||
* testrunner (no single quotes, extra comma's, etc). | ||
*/ | ||
EnableEngines(["passwords"]); | ||
|
||
var phases = { "phase1": "profile1" }; | ||
|
||
|
||
// expected tabs state | ||
var password_list = [{ | ||
hostname: "https://accounts.google.com", | ||
submitURL: "https://accounts.google.com/signin/challenge/sl/password", | ||
realm: null, | ||
username: "iosmztest", | ||
password: "test15mz", | ||
usernameField: "Email", | ||
passwordField: "Passwd", | ||
}]; | ||
|
||
// sync and verify tabs | ||
Phase("phase1", [ | ||
[Sync], | ||
[Passwords.add, password_list], | ||
[Sync] | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
/* | ||
* The list of phases mapped to their corresponding profiles. The object | ||
* here must be in strict JSON format, as it will get parsed by the Python | ||
* testrunner (no single quotes, extra comma's, etc). | ||
*/ | ||
EnableEngines(["tabs"]); | ||
|
||
var phases = { "phase1": "profile1" }; | ||
|
||
|
||
var tabs1 = [ | ||
{ uri: "http://example.com/", | ||
profile: "Fennec on iOS" | ||
} | ||
]; | ||
|
||
// sync and verify tabs | ||
Phase("phase1", [ | ||
[Sync], | ||
[Tabs.add, tabs1], | ||
[Sync] | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters