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} /> <Identicon address={address} diameter={70} />
<div className="tou__title">{title}</div> <div className="tou__title">{title}</div>
<Markdown <Markdown
className="tou__body" className="tou__body markdown"
source={body} source={body}
skipHtml skipHtml
/> />

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

Loading…
Cancel
Save