Skip to content
Snippets Groups Projects
Unverified Commit 8aece59a authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #4092 from LLK/revert-4035-admin-sees-author

Revert 4035 admin sees author
parents e4701e7b a4d3b6b7
No related branches found
No related tags found
No related merge requests found
...@@ -461,7 +461,7 @@ class MenuBar extends React.Component { ...@@ -461,7 +461,7 @@ class MenuBar extends React.Component {
<FormattedMessage {...ariaMessages.tutorials} /> <FormattedMessage {...ariaMessages.tutorials} />
</div> </div>
<Divider className={classNames(styles.divider)} /> <Divider className={classNames(styles.divider)} />
{this.props.canSave && this.props.canEditTitle ? ( {this.props.canEditTitle ? (
<div className={classNames(styles.menuBarItem, styles.growable)}> <div className={classNames(styles.menuBarItem, styles.growable)}>
<MenuBarItemTooltip <MenuBarItemTooltip
enable enable
......
...@@ -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