Add markdown class to mascara ui markdown field

feature/default_network_editable
Dan Finlay 7 years ago
parent 9ca6f93eca
commit adc66974ff
  1. 2
      mascara/src/app/first-time/notice-screen.js
  2. 7
      test/integration/lib/mascara-first-time.js

@ -64,7 +64,7 @@ class NoticeScreen extends Component {
<Identicon address={address} diameter={70} />
<div className="tou__title">{title}</div>
<Markdown
className="tou__body"
className="tou__body markdown"
source={body}
skipHtml
/>

@ -141,14 +141,15 @@ async function skipNotices (app) {
if (button && button.html() === 'Accept') {
// still notices to accept
const termsPage = app.find('.markdown')[0]
if (!termsPage) {
debugger
break
}
termsPage.scrollTop = termsPage.scrollHeight
await timeout()
console.log('Clearing notice')
button.click()
await timeout()
} else {
console.dir(button)
// exit loop
console.log('No more notices...')
break
}

Loading…
Cancel
Save