Merge pull request #4092 from LLK/revert-4035-admin-sees-author
Revert 4035 admin sees author
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -461,7 +461,7 @@ class MenuBar extends React.Component {
|
||||
<FormattedMessage {...ariaMessages.tutorials} />
|
||||
</div>
|
||||
<Divider className={classNames(styles.divider)} />
|
||||
{this.props.canSave && this.props.canEditTitle ? (
|
||||
{this.props.canEditTitle ? (
|
||||
<div className={classNames(styles.menuBarItem, styles.growable)}>
|
||||
<MenuBarItemTooltip
|
||||
enable
|
||||
|
||||
@@ -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"]');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user