From 971f16d6f3c8a292f35fe53d58d3f09c1355a475 Mon Sep 17 00:00:00 2001 From: Josiah Neuberger <josiah@wikimylife.org> Date: Mon, 4 Sep 2017 15:47:18 -0400 Subject: [PATCH] replicated load project test but in maximized browser with stage zoomed. --- test/integration/test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/integration/test.js b/test/integration/test.js index 39e8c6fae..9977e3608 100644 --- a/test/integration/test.js +++ b/test/integration/test.js @@ -76,6 +76,21 @@ describe('costumes, sounds and variables', () => { await expect(logs).toEqual([]); }); + test('Load a project by ID (fullscreen)', async () => { + driver.manage() + .window() + .maximize(); + const projectId = '96708228'; + await clickXpath('//img[@title="Zoom Control"]'); + await driver.get(`file://${uri}#${projectId}`); + await new Promise(resolve => setTimeout(resolve, 2000)); + await clickXpath('//img[@title="Go"]'); + await new Promise(resolve => setTimeout(resolve, 2000)); + await clickXpath('//img[@title="Stop"]'); + const logs = await getLogs(errorWhitelist); + await expect(logs).toEqual([]); + }); + test('Creating variables', async () => { await driver.get(`file://${uri}`); await clickText('Blocks'); -- GitLab