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:
parent
07c0cd59d4
commit
0fd8862c5e
@ -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',
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user