From 8dfdb34248410c9eacfaf5585d944cfe5d0ce8b1 Mon Sep 17 00:00:00 2001
From: Paul Kaplan <pkaplan@media.mit.edu>
Date: Thu, 3 Aug 2017 13:43:12 -0400
Subject: [PATCH] Add more interesting green flag test

---
 test/integration/test.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/integration/test.js b/test/integration/test.js
index af67281ad..9f8477651 100644
--- a/test/integration/test.js
+++ b/test/integration/test.js
@@ -1,4 +1,6 @@
 /* eslint-env jest */
+/* globals Promise */
+
 import path from 'path';
 import {
     clickText,
@@ -59,10 +61,11 @@ describe('costumes, sounds and variables', () => {
     });
 
     test('Load a project by ID', () => {
-        // @todo choose a more interesting project?
-        const projectId = '168754184';
+        const projectId = '96708228';
         return driver.get('file://' + uri + '#' + projectId)
+        .then(() => new Promise(resolve => setTimeout(resolve, 2000)))
         .then(() => clickXpath('//img[@title="Go"]'))
+        .then(() => new Promise(resolve => setTimeout(resolve, 2000)))
         .then(() => clickXpath('//img[@title="Stop"]'))
         .then(() => getLogs(errorWhitelist))
         .then(logs => expect(logs).toEqual([]));
-- 
GitLab