diff --git a/test/integration/menu-bar.test.js b/test/integration/menu-bar.test.js index ced505a916fdb0f8df8959635f9952399ae1ead3..6529b7bc4550a1114f9022e76c062ffbaff4f5d2 100644 --- a/test/integration/menu-bar.test.js +++ b/test/integration/menu-bar.test.js @@ -2,6 +2,7 @@ import path from 'path'; import SeleniumHelper from '../helpers/selenium-helper'; const { + clickText, clickXpath, findByXpath, getDriver, @@ -64,4 +65,13 @@ describe('Menu bar settings', () => { const currentUrl = await driver.getCurrentUrl(); await expect(currentUrl).toEqual('https://scratch.mit.edu/'); }); + + test('(GH#4064) Project name should be editable', async () => { + await loadUri(uri); + await clickXpath('//button[@title="Try It"]'); + const el = await findByXpath('//input[@value="Scratch Project"]'); + await el.sendKeys(' - Personalized'); + await clickText('Costumes'); // just to blur the input + await clickXpath('//input[@value="Scratch Project - Personalized"]'); + }); });