issue #22459: allow for id capture in smoke
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 21 Feb 2014 19:52:38 +0000 (14:52 -0500)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 21 Feb 2014 19:52:38 +0000 (14:52 -0500)
test/lib/smoke.js

index ab59aba..7bbd037 100644 (file)
     });
     it('can save the workspace', function (done) {
       this.timeout(20 * 1000);
+      if (spec.captureObject) {
+        XG = XG || {};
+        XG.capturedId = workspace.value.id;
+      }
       saveWorkspace(workspace, done);
     });
-    if (spec.skipSmokeDelete) {
+    if (spec.captureObject) {
       return;
     }
     it('can delete the item from the list', function (done) {