Skip to content

Commit f34e311

Browse files
authored
Merge branch 'trunk' into gutenberg/integrate_release_1.81.0
2 parents 0e89a74 + fae8e97 commit f34e311

225 files changed

Lines changed: 1468 additions & 1529 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.

.buildkite/commands/instrumented-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ echo "--- :closed_lock_with_key: Installing Secrets"
77
bundle exec fastlane run configure_apply
88

99
echo "--- 🧪 Testing"
10-
bundle exec fastlane build_and_instrumented_test
10+
bundle exec fastlane build_and_run_instrumented_test

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/WordPress/src/androidTest/ @wordpress-mobile/mobile-ui-testing-squad

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-----
55
* [*] Use larger thumbnail previews for recommended themes during site creation [https://github.com/wordpress-mobile/WordPress-Android/pull/16848]
66
* [***] [internal] Block Editor: List block: Adds support for V2 behind a feature flag [https://github.com/WordPress/gutenberg/pull/42702]
7-
7+
* [*] Jetpack App: Use the Jetpack green color for the skip buttons text in site creation [https://github.com/wordpress-mobile/WordPress-Android/pull/16994]
88

99
20.4
1010
-----

WordPress/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ android {
109109
buildConfigField "boolean", "SITE_NAME", "false"
110110
buildConfigField "boolean", "LAND_ON_THE_EDITOR", "false"
111111
buildConfigField "boolean", "BLOGGING_PROMPTS", "false"
112-
buildConfigField "boolean", "STATS_REVAMP_V2", "false"
113112
buildConfigField "boolean", "QUICK_START_EXISTING_USERS_V2", "false"
114113
buildConfigField "boolean", "QRCODE_AUTH_FLOW", "false"
115114
buildConfigField "boolean", "BETA_SITE_DESIGNS", "false"

WordPress/src/androidTest/java/org/wordpress/android/e2e/flows/LoginFlow.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public LoginFlow chooseContinueWithWpCom() {
3838
public LoginFlow enterEmailAddress(String emailAddress) {
3939
// Email Address Screen – Fill it in and click "Continue"
4040
// See LoginEmailFragment
41+
clickOn(R.id.input);
4142
populateTextField(R.id.input, emailAddress);
4243
clickOn(R.id.login_continue_button);
4344
return this;
@@ -46,6 +47,7 @@ public LoginFlow enterEmailAddress(String emailAddress) {
4647
public LoginFlow enterPassword(String password) {
4748
// Password Screen – Fill it in and click "Continue"
4849
// See LoginEmailPasswordFragment
50+
clickOn(R.id.input);
4951
populateTextField(R.id.input, password);
5052
clickOn(R.id.bottom_button);
5153
return this;
@@ -104,7 +106,9 @@ public LoginFlow enterUsernameAndPassword(String username, String password) {
104106
Matchers.instanceOf(EditText.class)));
105107
ViewInteraction passwordElement = onView(allOf(isDescendantOfA(withId(R.id.login_password_row)),
106108
Matchers.instanceOf(EditText.class)));
109+
clickOn(usernameElement);
107110
populateTextField(usernameElement, username + "\n");
111+
clickOn(passwordElement);
108112
populateTextField(passwordElement, password + "\n");
109113
clickOn(R.id.bottom_button);
110114
return this;
@@ -120,6 +124,7 @@ public LoginFlow chooseEnterYourSiteAddress() {
120124
public LoginFlow enterSiteAddress(String siteAddress) {
121125
// Site Address Screen – Fill it in and click "Continue"
122126
// See LoginSiteAddressFragment
127+
clickOn(R.id.input);
123128
populateTextField(R.id.input, siteAddress);
124129
clickOn(R.id.bottom_button);
125130
return this;

WordPress/src/androidTest/java/org/wordpress/android/support/WPSupportUtils.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,9 +820,17 @@ public static void scrollIntoView(Integer scrollableContainerID, ViewInteraction
820820
}
821821

822822
public static void dismissJetpackAdIfPresent() {
823+
String jetpackAdText = "Stats, Reader, Notifications, and other features are powered by Jetpack.";
824+
ViewInteraction jetpackBanner = onView(withText(jetpackAdText));
825+
823826
// Dismiss Jetpack ad that might be shown after Sign-Up or after opening Stats
824-
if (isElementDisplayed(onView(withText("Jetpack powered")))) {
827+
if (isElementDisplayed(jetpackBanner)) {
825828
clickOn(onView(withId(R.id.secondary_button)));
829+
waitForElementToNotBeDisplayed(jetpackBanner);
830+
831+
// Account for potential Emulator slowness on CI: the case of banner text
832+
// being already hidden, but top part of banner still sliding away
833+
idleFor(1000);
826834
}
827835
}
828836
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
4+
5+
<!-- Site creation -->
6+
<color name="site_creation_skip_button_text">@color/jetpack_green_40</color>
7+
</resources>

WordPress/src/main/java/org/wordpress/android/AppInitializer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ import javax.inject.Inject
124124
import javax.inject.Named
125125
import javax.inject.Singleton
126126

127-
@Suppress("TooManyFunctions")
128127
@Singleton
129128
class AppInitializer @Inject constructor(
130129
wellSqlInitializer: WellSqlInitializer,

WordPress/src/main/java/org/wordpress/android/WordPress.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ abstract class WordPress : MultiDexApplication() {
2828
initializer().wordPressComSignOut()
2929
}
3030

31-
@Suppress("TooManyFunctions")
3231
companion object {
3332
const val SITE = "SITE"
3433
const val LOCAL_SITE_ID = "LOCAL_SITE_ID"

WordPress/src/main/java/org/wordpress/android/support/ZendeskHelper.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ class ZendeskHelper(
336336
/**
337337
* This is a helper function which builds a `UiConfig` through helpers to be used during ticket creation.
338338
*/
339-
@Suppress("LongParameterList")
340339
private fun buildZendeskConfig(
341340
context: Context,
342341
allSites: List<SiteModel>?,

0 commit comments

Comments
 (0)