This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16249 from KevinGrandon/revert_bug_969587
Revert "Bug 969587 - Integration tests for FTU variant customization"
- Loading branch information
Showing
5 changed files
with
33 additions
and
105 deletions.
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
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 |
---|---|---|
@@ -1,34 +1,47 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
|
||
marionette('First Time Use >', function() { | ||
var assert = require('assert'); | ||
var FTU = require('./lib/ftu_test_lib').FTU; | ||
var FTU = 'app://communications.gaiamobile.org'; | ||
|
||
var client = marionette.client(); | ||
var ftu = new FTU(client); | ||
|
||
var clickThruPanel = function(panel_id, button_id) { | ||
if (panel_id == '#wifi') { | ||
// The wifi panel will bring up a screen to show it is scanning for | ||
// networks. Not waiting for this to clear will blow test timing and cause | ||
// things to fail. | ||
client.helper.waitForElementToDisappear('#loading-overlay'); | ||
} | ||
// waitForElement is used to make sure animations and page changes have | ||
// finished, and that the panel is displayed. | ||
client.helper.waitForElement(panel_id); | ||
if (button_id) { | ||
var button = client.waitForElement(button_id); | ||
button.click(); | ||
} | ||
}; | ||
|
||
test('FTU comes up on profile generation', function() { | ||
ftu.waitForFTU(); | ||
client.apps.switchToApp(FTU); | ||
}); | ||
|
||
test('FTU click thru', function() { | ||
ftu.waitForFTU(); | ||
ftu.clickThruPanel('#languages', '#forward'); | ||
ftu.clickThruPanel('#wifi', '#forward'); | ||
ftu.clickThruPanel('#date_and_time', '#forward'); | ||
ftu.clickThruPanel('#geolocation', '#forward'); | ||
ftu.clickThruPanel('#import_contacts', '#forward'); | ||
ftu.clickThruPanel('#welcome_browser', '#forward'); | ||
ftu.clickThruPanel('#browser_privacy', '#forward'); | ||
ftu.clickThruPanel('#finish-screen', undefined); | ||
client.apps.switchToApp(FTU); | ||
clickThruPanel('#languages', '#forward'); | ||
clickThruPanel('#wifi', '#forward'); | ||
clickThruPanel('#date_and_time', '#forward'); | ||
clickThruPanel('#geolocation', '#forward'); | ||
clickThruPanel('#import_contacts', '#forward'); | ||
clickThruPanel('#welcome_browser', '#forward'); | ||
clickThruPanel('#browser_privacy', '#forward'); | ||
clickThruPanel('#finish-screen', undefined); | ||
}); | ||
|
||
test('FTU Wifi Scanning Tests', function() { | ||
ftu.waitForFTU(); | ||
ftu.clickThruPanel('#languages', '#forward'); | ||
ftu.clickThruPanel('#wifi', '#forward'); | ||
ftu.clickThruPanel('#date_and_time', '#back'); | ||
ftu.clickThruPanel('#wifi', undefined); | ||
client.apps.switchToApp(FTU); | ||
clickThruPanel('#languages', '#forward'); | ||
clickThruPanel('#wifi', '#forward'); | ||
clickThruPanel('#date_and_time', '#back'); | ||
clickThruPanel('#wifi', undefined); | ||
}); | ||
|
||
}); |
36 changes: 0 additions & 36 deletions
36
apps/communications/ftu/test/marionette/lib/ftu_test_lib.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
apps/communications/ftu/test/unit/resources/default_bookmarks.json
This file was deleted.
Oops, something went wrong.