1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Don't show an additional beta UI notification

When a user has opted-in to the new UI from the announcement, we don't
need an additional notification letting the user know that they've
switched.
This commit is contained in:
Whymarrh Whitby 2018-07-27 20:05:26 -02:30
parent 07c0cd59d4
commit 0fd8862c5e
4 changed files with 2 additions and 12 deletions

View File

@ -82,7 +82,7 @@ module.exports = class AppBar extends Component {
AppBar.renderSpace(),
h('span.banner__link', {
async onClick () {
await dispatch(actions.setFeatureFlag('betaUI', true, 'BETA_UI_NOTIFICATION_MODAL'))
await dispatch(actions.setFeatureFlag('betaUI', true))
},
}, [
'Now',

View File

@ -15,11 +15,9 @@ module.exports = class NewUiAnnouncement extends PureComponent {
switchToNewUi = async () => {
const flag = 'betaUI'
const enabled = true
const notificationType = 'BETA_UI_NOTIFICATION_MODAL'
await this.props.dispatch(actions.setFeatureFlag(
flag,
enabled,
notificationType,
))
await this.close()
}

View File

@ -121,10 +121,6 @@ describe('Using MetaMask with an existing account', function () {
await driver.switchTo().window(appTab)
await delay(tinyDelayMs)
const okayBtn = await findElement(driver, By.xpath("//button[contains(text(), 'Ok')]"))
await okayBtn.click()
await delay(regularDelayMs)
await loadExtension(driver, extensionId)
await delay(regularDelayMs)
@ -238,7 +234,7 @@ describe('Using MetaMask with an existing account', function () {
await localhost.click()
await delay(largeDelayMs * 2)
})
it('choose Create Account from the account menu', async () => {
await driver.findElement(By.css('.account-menu__icon')).click()
await delay(regularDelayMs)

View File

@ -120,10 +120,6 @@ describe('MetaMask', function () {
await driver.switchTo().window(appTab)
await delay(tinyDelayMs)
const okayBtn = await findElement(driver, By.xpath("//button[contains(text(), 'Ok')]"))
await okayBtn.click()
await delay(regularDelayMs)
await loadExtension(driver, extensionId)
await delay(regularDelayMs)