Skip to content

Commit 14c48bf

Browse files
authored
Merge pull request #17268 from wordpress-mobile/uitii-rename-ui-tests
[UITTI] Renamed UI tests to make them appear in group in FTL tests list.
2 parents 7192aea + a725add commit 14c48bf

7 files changed

Lines changed: 24 additions & 20 deletions

File tree

WordPress/src/androidTest/java/org/wordpress/android/e2e/BlockEditorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void setUp() {
3939
+ "<!-- /wp:image --></div>\n";
4040

4141
@Test
42-
public void publishSimplePost() {
42+
public void e2ePublishSimplePost() {
4343
String title = "publishSimplePost";
4444

4545
new MySitesPage()
@@ -55,7 +55,7 @@ public void publishSimplePost() {
5555
}
5656

5757
@Test
58-
public void publishFullPost() {
58+
public void e2ePublishFullPost() {
5959
String title = "publishFullPost";
6060

6161
new MySitesPage()
@@ -75,7 +75,7 @@ public void publishFullPost() {
7575
}
7676

7777
@Test
78-
public void blockEditorCanDisplayElementAddedInHtmlMode() {
78+
public void e2eBlockEditorCanDisplayElementAddedInHtmlMode() {
7979
String title = "blockEditorCanDisplayElementAddedInHtmlMode";
8080

8181
new MySitesPage()

WordPress/src/androidTest/java/org/wordpress/android/e2e/ContactUsTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void setUp() {
2020

2121
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
2222
@Test
23-
public void sendButtonEnabledWhenTextIsEntered() {
23+
public void e2eSendButtonEnabledWhenTextIsEntered() {
2424
try {
2525
new LoginFlow()
2626
.chooseContinueWithWpCom()
@@ -40,7 +40,7 @@ public void sendButtonEnabledWhenTextIsEntered() {
4040

4141
@Ignore("As long as CI does not use gradle.properties from MobileSecrets")
4242
@Test
43-
public void messageCanBeSent() {
43+
public void e2eMessageCanBeSent() {
4444
String userMessageText = "Please ignore, this is an automated test.";
4545
String automatedReplyText = "Mobile support will respond as soon as possible, "
4646
+ "generally within 48-96 hours. "
@@ -62,15 +62,15 @@ public void messageCanBeSent() {
6262
}
6363

6464
@Test
65-
public void helpCanBeOpenedWhileEnteringEmail() {
65+
public void e2eHelpCanBeOpenedWhileEnteringEmail() {
6666
new LoginFlow()
6767
.chooseContinueWithWpCom()
6868
.tapHelp()
6969
.assertHelpAndSupportScreenLoaded();
7070
}
7171

7272
@Test
73-
public void helpCanBeOpenedWhileEnteringPassword() {
73+
public void e2eHelpCanBeOpenedWhileEnteringPassword() {
7474
new LoginFlow()
7575
.chooseContinueWithWpCom()
7676
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)

WordPress/src/androidTest/java/org/wordpress/android/e2e/EditorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void setUp() {
5656
// For more info see Issue: https://github.com/wordpress-mobile/WordPress-Android/issues/14389
5757
@Ignore("Classic Editor being deprecated for new posts, test should be adjusted to editing existing classic post")
5858
@Test
59-
public void testPublishSimplePost() {
59+
public void e2ePublishSimplePostClassic() {
6060
String title = "Hello Espresso!";
6161
String content = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";
6262

@@ -70,7 +70,7 @@ public void testPublishSimplePost() {
7070
// For more info see Issue: https://github.com/wordpress-mobile/WordPress-Android/issues/14389
7171
@Ignore("Classic Editor being deprecated for new posts, test should be adjusted to editing existing classic post")
7272
@Test
73-
public void testPublishFullPost() {
73+
public void e2ePublishFullPostClassic() {
7474
String title = "Hello Espresso!";
7575
String content = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
7676
+ "tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud "

WordPress/src/androidTest/java/org/wordpress/android/e2e/LoginTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void setUp() {
2626

2727
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
2828
@Test
29-
public void loginWithEmailPassword() {
29+
public void e2eLoginWithEmailPassword() {
3030
new LoginFlow().chooseContinueWithWpCom()
3131
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
3232
.enterPassword(E2E_WP_COM_USER_PASSWORD)
@@ -35,15 +35,15 @@ public void loginWithEmailPassword() {
3535

3636
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
3737
@Test
38-
public void loginWithPasswordlessAccount() {
38+
public void e2eLoginWithPasswordlessAccount() {
3939
new LoginFlow().chooseContinueWithWpCom()
4040
.enterEmailAddress(E2E_WP_COM_PASSWORDLESS_USER_EMAIL)
4141
.openMagicLink()
4242
.confirmLogin(false);
4343
}
4444

4545
@Test
46-
public void loginWithSiteAddress() {
46+
public void e2eLoginWithSiteAddress() {
4747
new LoginFlow().chooseEnterYourSiteAddress()
4848
.enterSiteAddress(E2E_WP_COM_USER_SITE_ADDRESS)
4949
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
@@ -53,7 +53,7 @@ public void loginWithSiteAddress() {
5353

5454
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
5555
@Test
56-
public void loginWithMagicLink() {
56+
public void e2eLoginWithMagicLink() {
5757
new LoginFlow().chooseContinueWithWpCom()
5858
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
5959
.chooseMagicLink()
@@ -62,7 +62,7 @@ public void loginWithMagicLink() {
6262
}
6363

6464
@Test
65-
public void loginWithSelfHostedAccount() {
65+
public void e2eLoginWithSelfHostedAccount() {
6666
new LoginFlow().chooseEnterYourSiteAddress()
6767
.enterSiteAddress(E2E_SELF_HOSTED_USER_SITE_ADDRESS)
6868
.enterUsernameAndPassword(E2E_SELF_HOSTED_USER_USERNAME, E2E_SELF_HOSTED_USER_PASSWORD)

WordPress/src/androidTest/java/org/wordpress/android/e2e/ReaderTests.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
import androidx.test.rule.GrantPermissionRule;
66

77
import org.junit.Before;
8+
import org.junit.Ignore;
89
import org.junit.Rule;
10+
import org.junit.Test;
911
import org.wordpress.android.e2e.pages.ReaderPage;
1012
import org.wordpress.android.support.BaseTest;
1113

@@ -26,8 +28,9 @@ public void setUp() {
2628
String mCoachingPostTitle = "Let's check out the coaching team!";
2729
String mCompetitionPostTitle = "Let's focus on the competition.";
2830

29-
// @Test
30-
public void navigateThroughPosts() {
31+
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
32+
@Test
33+
public void e2eNavigateThroughPosts() {
3134
new ReaderPage()
3235
.tapFollowingTab()
3336
.openPost(mCoachingPostTitle)
@@ -39,8 +42,9 @@ public void navigateThroughPosts() {
3942
.goBackToReader();
4043
}
4144

42-
// @Test
43-
public void likePost() {
45+
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
46+
@Test
47+
public void e2eLikePost() {
4448
new ReaderPage()
4549
.tapFollowingTab()
4650
.openPost(mCoachingPostTitle)

WordPress/src/androidTest/java/org/wordpress/android/e2e/SignUpTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void tearDown() {
2626
}
2727

2828
@Test
29-
public void signUpWithMagicLink() {
29+
public void e2eSignUpWithMagicLink() {
3030
new SignupFlow().chooseContinueWithWpCom()
3131
.enterEmail(E2E_SIGNUP_EMAIL)
3232
.openMagicLink()

WordPress/src/androidTest/java/org/wordpress/android/e2e/StatsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void tearDown() {
3838
}
3939

4040
@Test
41-
public void allDayStatsLoad() {
41+
public void e2eAllDayStatsLoad() {
4242
StatsVisitsData todayVisits = new StatsVisitsData("97", "28", "14", "11");
4343
List<StatsKeyValueData> postsList = new StatsMocksReader().readDayTopPostsToList();
4444
List<StatsKeyValueData> referrersList = new StatsMocksReader().readDayTopReferrersToList();

0 commit comments

Comments
 (0)