1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00
This commit is contained in:
Kevin Serrano 2016-10-11 15:50:02 -07:00
parent f7361d9654
commit 5e9bc31c58
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
4 changed files with 26 additions and 13 deletions

View File

@ -341,8 +341,6 @@ module.exports = class MetamaskController {
}
}
// called from popup
setRpcTarget (rpcTarget) {
this.configManager.setRpcTarget(rpcTarget)

View File

@ -3,25 +3,37 @@ QUnit.test('agree to terms', function (assert) {
// Select the mock app root
var app = $('iframe').contents().find('#app-content .mock-app-root')
// var button = $('.agree')
// button.removeAttr('disabled')
app.find('.markdown').prop('scrollTop', 100000000)
// Agree to terms
// wait().then(function() {
// app.find('button').click()
// wait().then(function() {
//
// var title = app.find('h1').text()
// assert.equal(title, 'MetaMask', 'title screen')
//
// var buttons = app.find('button')
// assert.equal(buttons.length, 2, 'two buttons: create and restore')
//
// done()
// })
// })
wait().then(function() {
app.find('button').click()
wait().then(function() {
}).then(function() {
return wait()
}).then(function() {
var title = app.find('h1').text()
assert.equal(title, 'MetaMask', 'title screen')
var title = app.find('h1').text()
assert.equal(title, 'MetaMask', 'title screen')
var buttons = app.find('button')
assert.equal(buttons.length, 2, 'two buttons: create and restore')
var buttons = app.find('button')
assert.equal(buttons.length, 2, 'two buttons: create and restore')
done()
})
done()
})
// Wait for view to transition:

View File

@ -44,6 +44,9 @@ AccountDetailScreen.prototype.render = function () {
var props = this.props
var selected = props.address || Object.keys(props.accounts)[0]
var identity = props.identities[selected]
console.log(props)
console.log(selected)
console.log(identity)
var account = props.accounts[selected]
const { network } = props

View File

@ -92,7 +92,7 @@ DisclaimerScreen.prototype.render = function () {
h('button', {
style: { marginTop: '18px' },
disabled: disabled,
disabled,
onClick: () => this.props.dispatch(actions.agreeToDisclaimer()),
}, disabled ? 'Scroll Down to Enable' : 'I Agree'),
])