File tree Expand file tree Collapse file tree
WordPress/src/androidTest/java/org/wordpress/android/e2e/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import static org .wordpress .android .support .WPSupportUtils .waitForElementToBeDisplayedWithoutFailure ;
2626import static junit .framework .TestCase .assertTrue ;
2727import static org .wordpress .android .support .WPSupportUtils .withIndex ;
28+ import static org .junit .Assert .fail ;
2829
2930public class BlockEditorPage {
3031 private static ViewInteraction titleField = onView (withHint ("Add title" ));
@@ -89,6 +90,10 @@ public void openPostKebabMenu() {
8990 if (!waitForElementToBeDisplayedWithoutFailure (postSettingButton )) {
9091 openActionBarOverflowOrOptionsMenu (ApplicationProvider .getApplicationContext ());
9192 }
93+
94+ if (!waitForElementToBeDisplayedWithoutFailure (postSettingButton )) {
95+ fail ("Failed to open post menu." );
96+ }
9297 }
9398
9499 public void openPostSetting () {
You can’t perform that action at this time.
0 commit comments