Skip to content

Commit b4793de

Browse files
committed
Don't initialize the visual editor if running tests
1 parent b6893bc commit b4793de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,9 @@ open class MainActivity : AppCompatActivity(),
418418
}
419419

420420
if (savedInstanceState == null) {
421-
aztec.visualEditor.fromHtml(EXAMPLE)
421+
if (!isRunningTest) {
422+
aztec.visualEditor.fromHtml(EXAMPLE)
423+
}
422424
aztec.initSourceEditorHistory()
423425
}
424426

0 commit comments

Comments
 (0)