From bc783f0334346f8c43a8e7d142ee0af99df5561e Mon Sep 17 00:00:00 2001 From: Ray Schamp <ray@scratch.mit.edu> Date: Wed, 12 Dec 2018 15:39:01 -0500 Subject: [PATCH] Add test for logo clicking --- test/integration/menu-bar.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/menu-bar.test.js b/test/integration/menu-bar.test.js index b1c3d9fc0..ced505a91 100644 --- a/test/integration/menu-bar.test.js +++ b/test/integration/menu-bar.test.js @@ -56,4 +56,12 @@ describe('Menu bar settings', () => { await clickXpath('//button[@title="Try It"]'); await findByXpath('//div[span[div[span[text()="Share"]]] and @data-tip="tooltip"]'); }); + + test('Logo should be clickable', async () => { + await loadUri(uri); + await clickXpath('//button[@title="Try It"]'); + await clickXpath('//img[@alt="Scratch"]'); + const currentUrl = await driver.getCurrentUrl(); + await expect(currentUrl).toEqual('https://scratch.mit.edu/'); + }); }); -- GitLab