Bug 1024734 - Wait correctly for project import in test_import.html. r=jryans draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 03 Oct 2016 01:48:46 -0700
changeset 420092 154ebf01edab01d30b1226d4b66ffc956d38c4d8
parent 419914 7c576fe3279d87543f0a03b844eba7bc215e17f1
child 532716 d43dab453667bed367afcc807a35c61c5519fa33
push id31089
push userbmo:poirot.alex@gmail.com
push dateMon, 03 Oct 2016 09:07:37 +0000
reviewersjryans
bugs1024734
milestone52.0a1
Bug 1024734 - Wait correctly for project import in test_import.html. r=jryans MozReview-Commit-ID: 5YWIITCzbic
devtools/client/webide/test/test_import.html
--- a/devtools/client/webide/test/test_import.html
+++ b/devtools/client/webide/test/test_import.html
@@ -24,18 +24,21 @@
           let packagedAppLocation = getTestFilePath("app");
 
           yield win.AppProjects.load();
           is(win.AppProjects.projects.length, 0, "IDB is empty");
 
           info("to call importPackagedApp(" + packagedAppLocation + ")");
           ok(!win.UI._busyPromise, "UI is not busy");
 
+          let onValidated = waitForUpdate(win, "project-validated");
+          let onDetails = waitForUpdate(win, "details");
           yield winProject.projectList.importPackagedApp(packagedAppLocation);
-          yield waitForUpdate(win, "project-validated");
+          yield onValidated;
+          yield onDetails;
 
           let project = win.AppManager.selectedProject;
           is(project.location, packagedAppLocation, "Location is valid");
           is(project.name, "A name (in app directory)", "name field has been updated");
           is(project.manifest.launch_path, "/index.html", "manifest found. launch_path valid.");
           is(project.manifest.description, "desc", "manifest found. description valid");
 
           yield nextTick();