Commit 3603eac
authored
test: place diff images next to baselines (#503)
# Summary
Previously, due to a recent bug in maestro, diff images were placed in
the `.maestro/screenshots/android/.maestro/screenshots/android`
directory, same for iOS. This PR fixes that, by using absolute paths we
ensure diff images are placed next to the baselines meaning in
`.maestro/screenshots/{android, ios}` directories.
## Test Plan
+ Check if tests still pass.
+ "Break" a single baseline by for example coloring part of it and
verify `*_diff.png` image is created in the same directory as the
baseline.
## Screenshots / Videos
N/A
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ✅ |
## Checklist
- [x] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent 07c01db commit 3603eac
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
84 | | - | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
0 commit comments