Skip to content

Commit c044ad1

Browse files
committed
Remove commented out link formatting test
1 parent 41c85d2 commit c044ad1

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

app/src/androidTest/java/org/wordpress/aztec/demo/SimpleTextFormattingTests.java

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,10 @@ public void testSimpleOrderedListFormatting() {
135135
sourceText.check(matches(withText(unformattedText + "\n<ol>\n\t<li>" + formattedText + "</li>\n</ol>")));
136136
}
137137

138-
/*
139-
* This test is disabled because Espresso does not click in the correct position for the link dialog's OK button.
140-
* See replacement test below.
141-
*/
142-
//@Test
143-
//public void testSimpleLinkFormatting() {
144-
// Enter text in visual editor with formatting
145-
//aztecText.perform(typeText(unformattedText));
146-
//linkButton.perform(scrollTo(), click());
147-
//linkURLField.perform(replaceText(linkURLText));
148-
//linkTextField.perform(replaceText(formattedText));
149-
//linkOKButton.perform(click());
150-
151-
// Check that HTML formatting tags were correctly added
152-
//toggleHTMLView();
153-
//sourceText.check(matches(withText(unformattedText + "<a href='" + linkURLText + "'>" + formattedText + "</a>")));
154-
//}
155-
156138
/*
157139
* This test enters link HTML and then checks the link dialog values.
140+
* This is opposite of the steps in the other tests (which enter rich text and check the HTML),
141+
* because Espresso does not click in the correct position for the link dialog's OK button.
158142
*/
159143
@Test
160144
public void testSimpleLinkFormatting() {
@@ -283,4 +267,4 @@ public void testSimplePreformattedTextFormatting() {
283267
toggleHTMLView();
284268
sourceText.check(matches(withText(unformattedText + "\n<pre>" + formattedText + "</pre>")));
285269
}
286-
}
270+
}

0 commit comments

Comments
 (0)