Skip to content
Snippets Groups Projects
Commit a4d3b6b7 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add a regression test to make sure bug does not come back

parent 10459eba
No related merge requests found
...@@ -2,6 +2,7 @@ import path from 'path'; ...@@ -2,6 +2,7 @@ import path from 'path';
import SeleniumHelper from '../helpers/selenium-helper'; import SeleniumHelper from '../helpers/selenium-helper';
const { const {
clickText,
clickXpath, clickXpath,
findByXpath, findByXpath,
getDriver, getDriver,
...@@ -64,4 +65,13 @@ describe('Menu bar settings', () => { ...@@ -64,4 +65,13 @@ describe('Menu bar settings', () => {
const currentUrl = await driver.getCurrentUrl(); const currentUrl = await driver.getCurrentUrl();
await expect(currentUrl).toEqual('https://scratch.mit.edu/'); 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"]');
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment