mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix browser not supported screen
This commit is contained in:
parent
aa5a987765
commit
cbb14f1d5e
@ -84,7 +84,7 @@
|
|||||||
"message": "Borrow With Dharma (Beta)"
|
"message": "Borrow With Dharma (Beta)"
|
||||||
},
|
},
|
||||||
"browserNotSupported": {
|
"browserNotSupported": {
|
||||||
"message": "Bummer! Your Browser is not supported..."
|
"message": "Your Browser is not supported..."
|
||||||
},
|
},
|
||||||
"builtInCalifornia": {
|
"builtInCalifornia": {
|
||||||
"message": "MetaMask is designed and built in California."
|
"message": "MetaMask is designed and built in California."
|
||||||
|
@ -347,7 +347,7 @@ describe('Using MetaMask with an existing account', function () {
|
|||||||
|
|
||||||
it('should show the "Browser not supported" screen for non Chrome browsers', async () => {
|
it('should show the "Browser not supported" screen for non Chrome browsers', async () => {
|
||||||
if (process.env.SELENIUM_BROWSER !== 'chrome') {
|
if (process.env.SELENIUM_BROWSER !== 'chrome') {
|
||||||
const title = await findElements(driver, By.xpath(`//h3[contains(text(), 'Bummer! Your Browser is not supported...')]`))
|
const title = await findElements(driver, By.xpath(`//h3[contains(text(), 'Your Browser is not supported...')]`))
|
||||||
assert.equal(title.length, 1)
|
assert.equal(title.length, 1)
|
||||||
|
|
||||||
const downloadChromeButtons = await findElements(driver, By.xpath(`//button[contains(text(), 'Download Google Chrome')]`))
|
const downloadChromeButtons = await findElements(driver, By.xpath(`//button[contains(text(), 'Download Google Chrome')]`))
|
||||||
|
@ -9,7 +9,7 @@ class ConnectScreen extends Component {
|
|||||||
|
|
||||||
renderUnsupportedBrowser () {
|
renderUnsupportedBrowser () {
|
||||||
return (
|
return (
|
||||||
h('div', {}, [
|
h('div.new-account-connect-form', {}, [
|
||||||
h('div.hw-connect', [
|
h('div.hw-connect', [
|
||||||
h('h3.hw-connect__title', {}, this.context.t('browserNotSupported')),
|
h('h3.hw-connect__title', {}, this.context.t('browserNotSupported')),
|
||||||
h('p.hw-connect__msg', {}, this.context.t('chromeRequiredForTrezor')),
|
h('p.hw-connect__msg', {}, this.context.t('chromeRequiredForTrezor')),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user