-
Notifications
You must be signed in to change notification settings - Fork 2
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 #34 from wordpress-mobile/test/color-settings
Color Settings test cases
- Loading branch information
Showing
11 changed files
with
211 additions
and
0 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
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,196 @@ | ||
|
||
# Color Settings - Test Cases | ||
|
||
#### **Precondition** | ||
|
||
1. Added block with color support such as `Buttons` or `Cover`. | ||
2. Opened color settings. | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC001 | ||
|
||
### Colors segmented controls | ||
|
||
**Steps:** | ||
|
||
* Switch several times between `Solid` and `Gradient` segments | ||
|
||
**Expected behavior:** | ||
|
||
* Selection animation works smoothly | ||
* Color swatches fade parallel with active segment change | ||
|
||
<img src="../resources/colors-segmented-controls.gif" width=300 /> | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC002 | ||
|
||
### Scroll color palette to start | ||
|
||
**Steps:** | ||
|
||
* Select one of the last solid colors (_blue or purple_) | ||
* Select `Gradient` segment | ||
|
||
**Expected behavior:** | ||
|
||
* Color list is scrolled to the start | ||
* Color swatches fade parallel with scroll | ||
|
||
<img src="../resources/scroll-color-palette-to-start.gif" width=300 /> | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC003 | ||
|
||
### Scroll color palette to the end | ||
|
||
**Steps:** | ||
|
||
* Press `Custom` color picker (at the end of the list) | ||
* Select any color and press `Apply` button / `Check` icon button (_Android_) | ||
* Press `Back` button | ||
* Open color settings | ||
|
||
**Expected behavior:** | ||
|
||
* Color list is scrolled to the end (to the _custom_ color) | ||
|
||
<img src="../resources/scroll-color-palette-to-the-end.gif" width=300 /> | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC004 | ||
|
||
### Pressing color swatch | ||
|
||
**Steps:** | ||
|
||
* Press any color several times | ||
|
||
**Expected behavior:** | ||
|
||
* Color swatch is bouncing on every press | ||
* Selected icon on white background fades in over the color swatch (_only on the first press_) | ||
|
||
<img src="../resources/pressing-color-swatch.gif" width=300 /> | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC005 | ||
|
||
### Customize gradient color | ||
|
||
**Steps:** | ||
|
||
* Select `gradient` segment | ||
* Press any color | ||
|
||
**Expected behavior:** | ||
|
||
* `Customize Gradient` slides in | ||
|
||
<img src="../resources/customize-gradient-color-3.gif" width=300 /> | ||
|
||
|
||
**Next Steps:** | ||
|
||
* Press `Customize Gradient` | ||
* Play with `Angle` and observe the color in block | ||
|
||
**Expected behavior:** | ||
|
||
* Linear background color angle is changed | ||
|
||
**Next Steps:** | ||
|
||
* Change type to `Radial` | ||
|
||
**Expected behavior:** | ||
|
||
* `Angle` control slides out | ||
|
||
<img src="../resources/customize-gradient-color-2.gif" width=300 /> | ||
|
||
|
||
**Next Steps:** | ||
|
||
* Press `Back` button | ||
|
||
**Expected behavior:** | ||
|
||
* Selected `Custom` picker button appeared at the end of the gradient colors list | ||
|
||
**Next Steps:** | ||
|
||
* Press `Back` button | ||
* Open color settings | ||
|
||
**Expected behavior:** | ||
|
||
* Colors list is always scrolled to the end (to the _custom_ color) when custom color is selected | ||
|
||
**Next Steps:** | ||
|
||
* Select one of the last gradient colors available on the screen | ||
|
||
**Expected behavior:** | ||
|
||
* List is scrolled and `Custom` button slides out | ||
|
||
<img src="../resources/customize-gradient-color.gif" width=300 /> | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
|
||
##### TC006 | ||
|
||
### Custom color picker | ||
|
||
**Steps:** | ||
|
||
* Press `Custom` color picker (at the end of the list) | ||
|
||
**Expected behavior:** | ||
|
||
* Expect sheet slides up (_its height animates_) | ||
|
||
**Next Steps:** | ||
|
||
* Play with picker | ||
* Observe if background color in block is changing | ||
* Select any color and press `Apply` button / `Check` icon button (_Android_) | ||
|
||
**Expected behavior:** | ||
|
||
* Chosen color is set | ||
|
||
**Next Steps:** | ||
|
||
* Press `Custom` button | ||
|
||
**Expected behavior:** | ||
|
||
* Picker is located on chosen color | ||
|
||
**Next Steps:** | ||
|
||
* Play with picker and select different color | ||
* Press `Cancel` button / `Cross` icon button (_Android_) | ||
|
||
**Expected behavior:** | ||
|
||
* Background color returned to the set color | ||
|
||
**Next Steps:** | ||
|
||
* Press `Custom` button | ||
* Play with picker and select different color | ||
* Press anywhere outside the sheet to close it | ||
|
||
**Expected behavior:** | ||
|
||
* Background color returned to the set color |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
- [ ] Colors Segmented Controls [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc001) | ||
- [ ] Scroll color palette to start [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc002) | ||
- [ ] Scroll color palette to the end [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc003) | ||
- [ ] Pressing color swatch [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc004) | ||
- [ ] Customize gradient color [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc005) | ||
- [ ] Custom color picker [steps](https://github.com/wordpress-mobile/test-cases/blob/master/test-cases/gutenberg/color-settings.md#tc006) |
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