Skip to content

Commit 6907721

Browse files
authored
Merge branch 'trunk' into merge/20.9-rc-3
2 parents bcc0100 + 2885159 commit 6907721

355 files changed

Lines changed: 2798 additions & 1736 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

RELEASE-NOTES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
21.0
44
-----
5-
5+
* [*] Updates splash screen for Android 12+ [https://github.com/wordpress-mobile/WordPress-Android/pull/17273]
6+
* [*] Fix text color of success messages in the QR code login flow [https://github.com/wordpress-mobile/WordPress-Android/pull/17286]
7+
* [*] Stats: Fix Western Arabic Numerals not being shown on every text of the stats screens in Arabic languages [https://github.com/wordpress-mobile/WordPress-Android/pull/17217]
68

79
20.9
810
-----

WordPress/src/androidTest/java/org/wordpress/android/AppInitializerTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import org.wordpress.android.support.BaseTest
1717
class AppInitializerTest : BaseTest() {
1818
@Test
1919
fun verifyOnAppComesFromBackgroundCalled() {
20+
Thread.sleep(100)
2021
assertFalse(WordPress.appIsInTheBackground)
2122
}
2223
}

WordPress/src/androidTest/java/org/wordpress/android/TestUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import android.content.SharedPreferences;
55
import android.content.SharedPreferences.Editor;
66
import android.database.sqlite.SQLiteDatabase;
7-
import android.preference.PreferenceManager;
87
import android.text.TextUtils;
98

9+
import androidx.preference.PreferenceManager;
10+
1011
import org.greenrobot.eventbus.EventBus;
1112
import org.wordpress.android.util.DateTimeUtils;
1213

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: 3 additions & 26 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()
@@ -38,39 +38,16 @@ public void sendButtonEnabledWhenTextIsEntered() {
3838
}
3939
}
4040

41-
@Ignore("As long as CI does not use gradle.properties from MobileSecrets")
4241
@Test
43-
public void messageCanBeSent() {
44-
String userMessageText = "Please ignore, this is an automated test.";
45-
String automatedReplyText = "Mobile support will respond as soon as possible, "
46-
+ "generally within 48-96 hours. "
47-
+ "Please reply with your site address (URL) "
48-
+ "and any additional details we should know.";
49-
50-
try {
51-
new LoginFlow()
52-
.chooseContinueWithWpCom()
53-
.tapHelp()
54-
.openContactUs()
55-
.setMessageText(userMessageText)
56-
.tapSendButton()
57-
.assertUserMessageDelivered(userMessageText)
58-
.assertSystemMessageReceived(automatedReplyText);
59-
} finally {
60-
new ContactSupportScreen().goBackAndDeleteUnsentMessageIfNeeded();
61-
}
62-
}
63-
64-
@Test
65-
public void helpCanBeOpenedWhileEnteringEmail() {
42+
public void e2eHelpCanBeOpenedWhileEnteringEmail() {
6643
new LoginFlow()
6744
.chooseContinueWithWpCom()
6845
.tapHelp()
6946
.assertHelpAndSupportScreenLoaded();
7047
}
7148

7249
@Test
73-
public void helpCanBeOpenedWhileEnteringPassword() {
50+
public void e2eHelpCanBeOpenedWhileEnteringPassword() {
7451
new LoginFlow()
7552
.chooseContinueWithWpCom()
7653
.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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import org.junit.After;
44
import org.junit.Before;
5-
import org.junit.Ignore;
65
import org.junit.Test;
76
import org.wordpress.android.e2e.flows.LoginFlow;
87
import org.wordpress.android.support.BaseTest;
@@ -24,36 +23,33 @@ public void setUp() {
2423
logoutIfNecessary();
2524
}
2625

27-
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
2826
@Test
29-
public void loginWithEmailPassword() {
27+
public void e2eLoginWithEmailPassword() {
3028
new LoginFlow().chooseContinueWithWpCom()
3129
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
3230
.enterPassword(E2E_WP_COM_USER_PASSWORD)
3331
.confirmLogin(false);
3432
}
3533

36-
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
3734
@Test
38-
public void loginWithPasswordlessAccount() {
35+
public void e2eLoginWithPasswordlessAccount() {
3936
new LoginFlow().chooseContinueWithWpCom()
4037
.enterEmailAddress(E2E_WP_COM_PASSWORDLESS_USER_EMAIL)
4138
.openMagicLink()
4239
.confirmLogin(false);
4340
}
4441

4542
@Test
46-
public void loginWithSiteAddress() {
43+
public void e2eLoginWithSiteAddress() {
4744
new LoginFlow().chooseEnterYourSiteAddress()
4845
.enterSiteAddress(E2E_WP_COM_USER_SITE_ADDRESS)
4946
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
5047
.enterPassword(E2E_WP_COM_USER_PASSWORD)
5148
.confirmLogin(false);
5249
}
5350

54-
@Ignore("Ignored temporarily. This sometimes fail on CI while running with whole test suite.")
5551
@Test
56-
public void loginWithMagicLink() {
52+
public void e2eLoginWithMagicLink() {
5753
new LoginFlow().chooseContinueWithWpCom()
5854
.enterEmailAddress(E2E_WP_COM_USER_EMAIL)
5955
.chooseMagicLink()
@@ -62,7 +58,7 @@ public void loginWithMagicLink() {
6258
}
6359

6460
@Test
65-
public void loginWithSelfHostedAccount() {
61+
public void e2eLoginWithSelfHostedAccount() {
6662
new LoginFlow().chooseEnterYourSiteAddress()
6763
.enterSiteAddress(E2E_SELF_HOSTED_USER_SITE_ADDRESS)
6864
.enterUsernameAndPassword(E2E_SELF_HOSTED_USER_USERNAME, E2E_SELF_HOSTED_USER_PASSWORD)

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import org.junit.Before;
88
import org.junit.Rule;
9+
import org.junit.Test;
910
import org.wordpress.android.e2e.pages.ReaderPage;
1011
import org.wordpress.android.support.BaseTest;
1112

@@ -26,8 +27,8 @@ public void setUp() {
2627
String mCoachingPostTitle = "Let's check out the coaching team!";
2728
String mCompetitionPostTitle = "Let's focus on the competition.";
2829

29-
// @Test
30-
public void navigateThroughPosts() {
30+
@Test
31+
public void e2eNavigateThroughPosts() {
3132
new ReaderPage()
3233
.tapFollowingTab()
3334
.openPost(mCoachingPostTitle)
@@ -39,8 +40,8 @@ public void navigateThroughPosts() {
3940
.goBackToReader();
4041
}
4142

42-
// @Test
43-
public void likePost() {
43+
@Test
44+
public void e2eLikePost() {
4445
new ReaderPage()
4546
.tapFollowingTab()
4647
.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)