From 508fd343d238c4930cf689cd1fceee428aa21523 Mon Sep 17 00:00:00 2001
From: Paul Kaplan <pkaplan@media.mit.edu>
Date: Fri, 15 Dec 2017 15:43:04 -0500
Subject: [PATCH] Add integration test for backdrop library

---
 test/integration/test.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/integration/test.js b/test/integration/test.js
index ca54db337..58b488ecd 100644
--- a/test/integration/test.js
+++ b/test/integration/test.js
@@ -74,6 +74,16 @@ describe('costumes, sounds and variables', () => {
         await expect(logs).toEqual([]);
     });
 
+    test('Adding a backdrop', async () => {
+        await loadUri(uri);
+        await clickText('Add Backdrop');
+        const el = await findByXpath("//input[@placeholder='what are you looking for?']");
+        await el.sendKeys('blue');
+        await clickText('Blue Sky'); // Should close the modal
+        const logs = await getLogs(errorWhitelist);
+        await expect(logs).toEqual([]);
+    });
+
     test('Adding a sound', async () => {
         await loadUri(uri);
         await clickText('Sounds');
-- 
GitLab