File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ package org.wordpress.aztec.demo.tests
2+
3+ import android.support.test.rule.ActivityTestRule
4+ import org.junit.Rule
5+ import org.junit.Test
6+ import org.wordpress.aztec.demo.BaseTest
7+ import org.wordpress.aztec.demo.MainActivity
8+ import org.wordpress.aztec.demo.pages.EditorPage
9+
10+ class BasicTextEditingTests : BaseTest () {
11+
12+ @Rule
13+ @JvmField
14+ var mActivityTestRule = ActivityTestRule (MainActivity ::class .java)
15+
16+ // Test reproducing the issue described in https://github.com/wordpress-mobile/AztecEditor-Android/issues/711
17+ @Test
18+ fun testEditOutChangesSwitch () {
19+ EditorPage ()
20+ .insertText(" text" )
21+ .toggleHtml()
22+ .toggleHtml()
23+ .clearText()
24+ .toggleHtml()
25+ .verifyHTML(" " )
26+ }
27+
28+ }
You can’t perform that action at this time.
0 commit comments