Repository navigation
Commit cb656fc
test(title): add color and rtl coverage (#31537)
Issue number: resolves internal
---------
<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->
<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
No test sets `color` on `ion-title`, and no test screenshots a title in
the ionic theme in RTL.
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- Adds a `color` test page and screenshots in the ionic, md and ios
themes.
- Runs the `basic` screenshots in RTL too. The ios and md RTL snapshots
already existed without a test generating them; they now have one.
- Adds spec tests for the classes title renders, the inner
`.toolbar-title` element the iOS large title animations measure, and the
`ionStyle` event.
- Snapshots are generated on the current code, so the Modular Ionic
migration stacked on this PR shows any visual change it makes.
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
<!--
If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->
## Other information
| Check | Preview | What to look for |
|---|---|---|
| Color, md theme |
[preview](https://ionic-framework-git-fw-6863-tests-ionic1.vercel.app/src/components/title/test/color/index.html?ionic:theme=md&ionic:mode=md)
| Each title is drawn in the color it names |
| Color, ios theme |
[preview](https://ionic-framework-git-fw-6863-tests-ionic1.vercel.app/src/components/title/test/color/index.html?ionic:theme=ios&ionic:mode=ios)
| Each title is drawn in the color it names |
| Color, ionic theme |
[preview](https://ionic-framework-git-fw-6863-tests-ionic1.vercel.app/src/components/title/test/color/index.html?ionic:theme=ionic&ionic:mode=md)
| Every title stays dark gray. That's the current ionic behavior,
recorded so the migration in #31539 shows its fix |
| Basic, ionic theme, RTL |
[before](https://ionic-framework-git-fw-6863-base-theme-ionic1.vercel.app/src/components/title/test/basic/index.html?ionic:theme=ionic&ionic:mode=md&rtl=true)
and
[after](https://ionic-framework-git-fw-6863-tests-ionic1.vercel.app/src/components/title/test/basic/index.html?ionic:theme=ionic&ionic:mode=md&rtl=true)
| Looks the same on both. This PR only adds its screenshots |
---------
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: ionitron <hi@ionicframework.com>1 parent ea22dc8 commit cb656fc
16 files changed
Lines changed: 202 additions & 9 deletions
File tree
- core/src/components/title/test
- basic
- title.e2e.ts-snapshots
- color
- title.e2e.ts-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
9 | 81 | | |
10 | | - | |
11 | | - | |
| 82 | + | |
12 | 83 | | |
13 | 84 | | |
14 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments