diff --git a/test/integration/project-loading.test.js b/test/integration/project-loading.test.js index 3bc4ecde03dde48b261da3fc1e9f816db8e1f6e2..29abfb3eb044ee7b20e9bf1f91d3d3b1a8b925d8 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();