Skip to content

Commit 2e5ea23

Browse files
committed
Add a testcase for #711
1 parent 9e874ea commit 2e5ea23

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
}

0 commit comments

Comments
 (0)