-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(datetime): un-flake presentation test (#28090)
Issue number: N/A --------- <!-- 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. --> There are two problems with this test: 1. The screenshots are not capturing the correct UI. For example, the following screenshot should capture the date and time grid picker, but it's only capturing the year wheel picker: https://github.com/ionic-team/ionic-framework/blob/8ab3476ac7e9b05aba5328c31db763011dc0a766/core/src/components/datetime/test/presentation/datetime.e2e.ts-snapshots/datetime-presentation-date-time-diff-ios-rtl-Mobile-Safari-linux.png 2. These screenshots are flaky. This is possibly due to how they were written where they iterate through an array, select a value from the `select`, and then wait a timeout for the view to change. 3. I also discovered that we'll have some visual diffs once 2024 hits. The current value of the datetime on the wheel picker is 2022. 2023 is shown, but 2024 is not (since we are still in 2023). Once Jan 1 2024 hits, these tests will likely start to fail with visual diffs. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Refactored these tests to use a test fixture where each presentation is a separate test. This ensures that the tests are correct. Because there is less interaction going on with the page (i.e. the correct presentation is set on load), my hope is that this also reduces test flakiness. - Also changed the date used to be several years ago so we don't have new years showing up in the wheel picker screenshots as time goes on. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> --------- Co-authored-by: ionitron <[email protected]>
- Loading branch information
1 parent
2a80eb6
commit e1fdbb3
Showing
85 changed files
with
62 additions
and
21 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
Binary file modified
BIN
+14 KB
(420%)
...2e.ts-snapshots/datetime-presentation-date-diff-ios-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.2 KB
(370%)
...e.ts-snapshots/datetime-presentation-date-diff-ios-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.9 KB
(470%)
...2e.ts-snapshots/datetime-presentation-date-diff-ios-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14.1 KB
(420%)
...2e.ts-snapshots/datetime-presentation-date-diff-ios-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.1 KB
(370%)
...e.ts-snapshots/datetime-presentation-date-diff-ios-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.9 KB
(480%)
...2e.ts-snapshots/datetime-presentation-date-diff-ios-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.8 KB
(310%)
...e2e.ts-snapshots/datetime-presentation-date-diff-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.37 KB
(250%)
...2e.ts-snapshots/datetime-presentation-date-diff-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.4 KB
(350%)
...e2e.ts-snapshots/datetime-presentation-date-diff-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.81 KB
(310%)
...e2e.ts-snapshots/datetime-presentation-date-diff-md-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.2 KB
(240%)
...2e.ts-snapshots/datetime-presentation-date-diff-md-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.45 KB
(350%)
...e2e.ts-snapshots/datetime-presentation-date-diff-md-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.9 KB
(460%)
...-snapshots/datetime-presentation-date-time-diff-ios-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17.2 KB
(410%)
...snapshots/datetime-presentation-date-time-diff-ios-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14.5 KB
(520%)
...-snapshots/datetime-presentation-date-time-diff-ios-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16 KB
(460%)
...-snapshots/datetime-presentation-date-time-diff-ios-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17.2 KB
(410%)
...snapshots/datetime-presentation-date-time-diff-ios-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14.6 KB
(530%)
...-snapshots/datetime-presentation-date-time-diff-ios-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.8 KB
(360%)
...s-snapshots/datetime-presentation-date-time-diff-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.8 KB
(280%)
...-snapshots/datetime-presentation-date-time-diff-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.1 KB
(400%)
...s-snapshots/datetime-presentation-date-time-diff-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.8 KB
(360%)
...s-snapshots/datetime-presentation-date-time-diff-md-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.6 KB
(280%)
...-snapshots/datetime-presentation-date-time-diff-md-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.2 KB
(400%)
...s-snapshots/datetime-presentation-date-time-diff-md-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.88 KB
(160%)
...e.ts-snapshots/datetime-presentation-month-diff-ios-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.81 KB
(150%)
....ts-snapshots/datetime-presentation-month-diff-ios-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.5 KB
(170%)
...e.ts-snapshots/datetime-presentation-month-diff-ios-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.88 KB
(160%)
...e.ts-snapshots/datetime-presentation-month-diff-ios-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.81 KB
(150%)
....ts-snapshots/datetime-presentation-month-diff-ios-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.5 KB
(170%)
...e.ts-snapshots/datetime-presentation-month-diff-ios-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+4.24 KB
(200%)
...2e.ts-snapshots/datetime-presentation-month-diff-md-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.25 KB
(150%)
...e.ts-snapshots/datetime-presentation-month-diff-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.29 KB
(200%)
...2e.ts-snapshots/datetime-presentation-month-diff-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+4.24 KB
(200%)
...2e.ts-snapshots/datetime-presentation-month-diff-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.25 KB
(150%)
...e.ts-snapshots/datetime-presentation-month-diff-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.29 KB
(200%)
...2e.ts-snapshots/datetime-presentation-month-diff-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6.75 KB
(250%)
...snapshots/datetime-presentation-month-year-diff-ios-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6.51 KB
(220%)
...napshots/datetime-presentation-month-year-diff-ios-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+5.88 KB
(270%)
...snapshots/datetime-presentation-month-year-diff-ios-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6.75 KB
(250%)
...snapshots/datetime-presentation-month-year-diff-ios-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+6.51 KB
(220%)
...napshots/datetime-presentation-month-year-diff-ios-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+5.88 KB
(270%)
...snapshots/datetime-presentation-month-year-diff-ios-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+8.9 KB
(320%)
...-snapshots/datetime-presentation-month-year-diff-md-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+8.08 KB
(230%)
...snapshots/datetime-presentation-month-year-diff-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+7.43 KB
(320%)
...-snapshots/datetime-presentation-month-year-diff-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+8.9 KB
(320%)
...-snapshots/datetime-presentation-month-year-diff-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+8.08 KB
(230%)
...snapshots/datetime-presentation-month-year-diff-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+7.43 KB
(320%)
...-snapshots/datetime-presentation-month-year-diff-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+15.9 KB
(460%)
...-snapshots/datetime-presentation-time-date-diff-ios-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17.2 KB
(410%)
...snapshots/datetime-presentation-time-date-diff-ios-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+14.5 KB
(520%)
...-snapshots/datetime-presentation-time-date-diff-ios-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+16 KB
(460%)
...-snapshots/datetime-presentation-time-date-diff-ios-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17.2 KB
(410%)
...snapshots/datetime-presentation-time-date-diff-ios-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+14.6 KB
(530%)
...-snapshots/datetime-presentation-time-date-diff-ios-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10.8 KB
(360%)
...s-snapshots/datetime-presentation-time-date-diff-md-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+11.8 KB
(280%)
...-snapshots/datetime-presentation-time-date-diff-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10.1 KB
(400%)
...s-snapshots/datetime-presentation-time-date-diff-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10.8 KB
(360%)
...s-snapshots/datetime-presentation-time-date-diff-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+11.6 KB
(280%)
...-snapshots/datetime-presentation-time-date-diff-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10.2 KB
(400%)
...s-snapshots/datetime-presentation-time-date-diff-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.29 KB
(130%)
...2e.ts-snapshots/datetime-presentation-time-diff-ios-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.11 KB
(120%)
...e.ts-snapshots/datetime-presentation-time-diff-ios-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.27 KB
(140%)
...2e.ts-snapshots/datetime-presentation-time-diff-ios-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.29 KB
(130%)
...2e.ts-snapshots/datetime-presentation-time-diff-ios-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.11 KB
(120%)
...e.ts-snapshots/datetime-presentation-time-diff-ios-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.27 KB
(140%)
...2e.ts-snapshots/datetime-presentation-time-diff-ios-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.8 KB
(140%)
...e2e.ts-snapshots/datetime-presentation-time-diff-md-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1001 Bytes
(120%)
...2e.ts-snapshots/datetime-presentation-time-diff-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.59 KB
(150%)
...e2e.ts-snapshots/datetime-presentation-time-diff-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.8 KB
(140%)
...e2e.ts-snapshots/datetime-presentation-time-diff-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1001 Bytes
(120%)
...2e.ts-snapshots/datetime-presentation-time-diff-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.59 KB
(150%)
...e2e.ts-snapshots/datetime-presentation-time-diff-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.75 KB
(140%)
...2e.ts-snapshots/datetime-presentation-year-diff-ios-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.62 KB
(130%)
...e.ts-snapshots/datetime-presentation-year-diff-ios-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.56 KB
(150%)
...2e.ts-snapshots/datetime-presentation-year-diff-ios-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.75 KB
(140%)
...2e.ts-snapshots/datetime-presentation-year-diff-ios-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.62 KB
(130%)
...e.ts-snapshots/datetime-presentation-year-diff-ios-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.56 KB
(150%)
...2e.ts-snapshots/datetime-presentation-year-diff-ios-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.36 KB
(160%)
...e2e.ts-snapshots/datetime-presentation-year-diff-md-ltr-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.2 KB
(130%)
...2e.ts-snapshots/datetime-presentation-year-diff-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.02 KB
(160%)
...e2e.ts-snapshots/datetime-presentation-year-diff-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.36 KB
(160%)
...e2e.ts-snapshots/datetime-presentation-year-diff-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.2 KB
(130%)
...2e.ts-snapshots/datetime-presentation-year-diff-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.02 KB
(160%)
...e2e.ts-snapshots/datetime-presentation-year-diff-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.