|
|
|
@ -21,14 +21,22 @@ async function runConfirmSigRequestsTest(assert, done) { |
|
|
|
|
selectState.val('confirm sig requests') |
|
|
|
|
reactTriggerChange(selectState[0]) |
|
|
|
|
|
|
|
|
|
const pendingRequestItem = await queryAsync($, '.tx-list-item.tx-list-pending-item-container.tx-list-clickable') |
|
|
|
|
// await timeout(1000000)
|
|
|
|
|
|
|
|
|
|
const pendingRequestItem = $.find('.tx-list-item.tx-list-pending-item-container.tx-list-clickable') |
|
|
|
|
|
|
|
|
|
if (pendingRequestItem[0]) { |
|
|
|
|
pendingRequestItem[0].click() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let confirmSigHeadline = await queryAsync($, '.request-signature__headline') |
|
|
|
|
assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') |
|
|
|
|
|
|
|
|
|
let confirmSigMessage = await queryAsync($, '.request-signature__notice') |
|
|
|
|
assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) |
|
|
|
|
|
|
|
|
|
let confirmSigRowValue = await queryAsync($, '.request-signature__row-value') |
|
|
|
|
assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) |
|
|
|
|
assert.equal(confirmSigRowValue[0].textContent, '0x879a053d4800c6354e76c7985a865d2922c82fb5b3f4577b2fe08b998954f2e0') |
|
|
|
|
|
|
|
|
|
let confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') |
|
|
|
|
confirmSigSignButton[0].click() |
|
|
|
@ -36,8 +44,8 @@ async function runConfirmSigRequestsTest(assert, done) { |
|
|
|
|
confirmSigHeadline = await queryAsync($, '.request-signature__headline') |
|
|
|
|
assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') |
|
|
|
|
|
|
|
|
|
let confirmSigMessage = await queryAsync($, '.request-signature__notice') |
|
|
|
|
assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) |
|
|
|
|
confirmSigRowValue = await queryAsync($, '.request-signature__row-value') |
|
|
|
|
assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) |
|
|
|
|
|
|
|
|
|
confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') |
|
|
|
|
confirmSigSignButton[0].click() |
|
|
|
|