From 8a23c46348976c406c098038a129a42241e5243b Mon Sep 17 00:00:00 2001
From: Luke Schlangen <lukeschlangen@gmail.com>
Date: Thu, 8 Feb 2018 10:55:25 -0600
Subject: [PATCH] add integration test for not now button

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

diff --git a/test/integration/project-loading.test.js b/test/integration/project-loading.test.js
index 3bc4ecde0..29abfb3eb 100644
--- a/test/integration/project-loading.test.js
+++ b/test/integration/project-loading.test.js
@@ -2,6 +2,7 @@ import path from 'path';
 import SeleniumHelper from '../helpers/selenium-helper';
 
 const {
+    clickText,
     clickXpath,
     getDriver,
     getLogs,
@@ -12,6 +13,15 @@ const uri = path.resolve(__dirname, '../../build/index.html');
 
 let driver;
 
+describe('Loading scratch gui', () => {
+    test('The "Not Now" button sends you to scratch', async () => {
+        await loadUri(uri);
+        await clickText('Not Now');
+        const currentUrl = await driver.getCurrentUrl();
+        await expect(currentUrl).toEqual('https://scratch.mit.edu/');
+    });
+});
+
 describe('Loading projects by ID', () => {
     beforeAll(() => {
         driver = getDriver();
-- 
GitLab