diff --git a/test/integration/screen.js b/test/integration/screen.js index 6fb880f5..ac5dd3d4 100644 --- a/test/integration/screen.js +++ b/test/integration/screen.js @@ -6,7 +6,7 @@ var elements; robot.setMouseDelay(100); -test('Test Screen.', { timeout: 10000 }, function(t) +test('Test reading the Screen.', { timeout: 10000 }, function(t) { t.plan(1); @@ -16,12 +16,9 @@ test('Test Screen.', { timeout: 10000 }, function(t) // Wait for the list of elements. target.on('elements', function(elements) { - // For this test we want a button. - // setTimeout(() => { - var color_1 = elements.color_1; - const color = robot.getPixelColor(color_1.x, color_1.y); - t.equal(color, "c0ff33", 'Color is what we expected.'); - // }, 100); + var color_1 = elements.color_1; + const color = robot.getPixelColor(color_1.x, color_1.y); + t.equal(color, "c0ff33", 'Color is what we expected.'); }); // Close the UI.