-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10308 from wordpress-mobile/merge/13.0-into-master
Merge 13.0 into master
- Loading branch information
Showing
611 changed files
with
6,400 additions
and
3,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
BUNDLE_PATH: "vendor/bundle" | ||
BUNDLE_WITHOUT: "screenshots" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
* Customers with unclaimed domain credits can register domains in the app. | ||
* You can expand the Comment Editor to Full Screen for more space while editing. | ||
* The Block editor has a few improvements: Video blocks are available, and a some issues that led to content loss when using unsupported blocks have been resolved. | ||
* Fixes a crash that could happen when viewing help from the login screen | ||
* Allow setting which editor to use on a per-site basis | ||
* Improves accessibility in stats | ||
* Makes it easier to log in by validating the URL to your site more quickly. | ||
* Some minor tweaks to the colour scheme |
45 changes: 45 additions & 0 deletions
45
WordPress/src/androidTest/java/org/wordpress/android/e2e/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## UI tests Overview | ||
|
||
WordPress for Android has UI acceptance tests for critical user flows through the app, such as login, | ||
signup, and publishing. The tests use mocked network requests with [WireMock](http://wiremock.org/), | ||
defined in [WordPressMocks](https://github.com/wordpress-mobile/WordPressMocks). | ||
|
||
## Running the tests | ||
|
||
**Note that due to the mock server setup, tests cannot be run on physical devices right now.** | ||
|
||
|
||
1. Follow the [build instructions](https://github.com/wordpress-mobile/WordPress-Android#build-instructions) | ||
(steps 1-7) to clone, build and run the project in Android Studio. | ||
2. Run the tests in `org.wordpress.android.e2e` | ||
|
||
There's no additional steps needed to make the tests run against the mock server -- that's configured by default. | ||
|
||
## Adding a new test? | ||
|
||
Great! When adding a new UI test, consider: | ||
|
||
* Whether you need to test a user flow (to accomplish a task or goal) or a specific feature (e.g. boundary testing). | ||
* What screens/pages are being tested (defined in `pages/`). | ||
* What user flows are being used (defined in `flows/`). | ||
* Any specific UI components being interacted with?(defined in `components/`). | ||
* What network requests are made during the test (defined in `libs/mocks/WordPressMocks`)). | ||
|
||
It's preferred to focus UI tests on entire user flows, and group tests with related flows or goals in the same test file. | ||
|
||
When you add a new test, you may need to add new screens, methods, and flows. When writing these I encourage you to check | ||
`support/WPSupportUtils.java` for additional code to reuse to automate the task. Our tests are also used to generate screenshots | ||
and a lot of useful helper functions are made available through that auxillary file. Wherever possible, avoid the use | ||
of a string to select a UI element on the screen; the use of other identifiers such as id or content description is preferable | ||
and should be used where possible, even if that means adding it to a UI element that might be missing the appropriate field. | ||
This ensures tests can be run regardless of the device language. | ||
|
||
## Adding or updating network mocks | ||
|
||
When you add a test (or when the app changes), the request definitions for WireMock need to be updated. You can read WireMock’s documentation [here](http://wiremock.org/docs/). | ||
|
||
If you are unsure what network requests need to be mocked for a test, an easy way to find out is to run the app through [Charles Proxy](https://www.charlesproxy.com/) and observe the required requests. | ||
|
||
`WordPressMocks` is included as a library in `WordPress-Android` and are located in `libs/mocks/WordPressMocks/`, you can update | ||
your local mock files and make changes here. Additionally a pull request updating the mocks | ||
here should have an accompanying pull request to the `WordPressMocks` repo so that the mocks can be shared across the platforms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
WordPress/src/debug/java/org/wordpress/android/testing/OpenForTesting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.wordpress.android.testing | ||
/** | ||
* This annotation allows us to open some classes in debug build only for mocking purposes while they are final in | ||
* release builds. | ||
*/ | ||
@Target(AnnotationTarget.ANNOTATION_CLASS) | ||
annotation class OpenClassAnnotation | ||
/** | ||
* Annotate a class with [OpenForTesting] if you want it to be extendable in debug builds. | ||
*/ | ||
@OpenClassAnnotation | ||
@Target(AnnotationTarget.CLASS) | ||
annotation class OpenForTesting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.