From a4d3b6b7f22f78f3ddab93f615a9771e30830f82 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Fri, 14 Dec 2018 16:19:15 -0500 Subject: [PATCH] Add a regression test to make sure bug does not come back --- test/integration/menu-bar.test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/menu-bar.test.js b/test/integration/menu-bar.test.js index ced505a91..6529b7bc4 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"]'); + }); }); -- GitLab