Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1030452 - Intermittent failing test, Vertical Home - Packaged App…
Browse files Browse the repository at this point in the history
… Install install app
  • Loading branch information
KevinGrandon committed Jun 26, 2014
1 parent c478c43 commit d96d82b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/verticalhome/test/marionette/app_packaged_install_test.js
Expand Up @@ -6,6 +6,7 @@ var Home2 = require('./lib/home2');
var System = require('../../../../apps/system/test/marionette/lib/system');
var AppInstall =
require('../../../../apps/system/test/marionette/lib/app_install');
var iconAppState = require('./lib/icon_app_state');
var createAppServer = require('./server/parent');

marionette('Vertical Home - Packaged App Install', function() {
Expand Down Expand Up @@ -38,6 +39,15 @@ marionette('Vertical Home - Packaged App Install', function() {
test('install app', function() {
client.switchToFrame();
appInstall.installPackage(server.packageManifestURL);

client.switchToFrame(system.getHomescreenIframe());

var appIcon = subject.getIcon(server.packageManifestURL);
// ensure the app is ready
client.waitFor(function() {
return iconAppState(appIcon) === 'ready';
});

subject.launchAndSwitchToApp(server.packageManifestURL);
assert.equal(client.title(), 'iwrotethis');
});
Expand Down

0 comments on commit d96d82b

Please sign in to comment.