Merge pull request #4039 from rschamp/on-click-logo

Add onClick prop for the logo
This commit is contained in:
Ray Schamp authored and GitHub committed 2018-12-13 07:26:18 -05:00
commit 6eb080bd1f
5 files changed
+30 -8

No files matched your search

+8
View File
@@ -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/');
});
});