Commit 42956e4
New Major Release (#830)
* Ws/fix-747-improve-mobile-webview-screenshot (#777)
* chore: update deps
* chore: revert major eslint
* feat: initial setup for device layer calculations
- this is work in progress
* chore: fixed some stuff and updated some broken UT's
* fix: right import and export
* fix: fix mocks
* chore: optimise code a bit and add docs
* chore: fix linking and types
* fix: fix return data from overlay
* feat: add Android support for blockouts based on device rectangles
* feat: support ios and android for checkScreen
- simplify determineStatusAddressToolBarRectangles
- reduce rectangle tests
- fix data url loading in Safari
* feat: add checkElement support
* fix: optimise code and fix UTs for element
* feat: support savefullpagescreenshot with new viewport data for Android
* feat: support fullpage for iOS portrait
* test: fix tests
* fix: multiple fixes for fullpage
- iOS had issues on landscape
- removed not needed code and files
* chore: remove logs
* fix: fix Android Appium 1 issues
- add fallback
- remove logs
- update images for android phones
* chore: update iOS stuff
- add LANDSCAPE for local android
* chore: updated safari desktop screenshots
* test: update snapshots
* feat: move the new logic to the webdriver-image-comparison module
* fix: fix unit tests
* breaking: taking element screenshot for iOS
- some other small fixes
* chore: optimise deviceRectangles
- remove devicePlatformRect
- enrich deviceRectangles with statusBar and homeBar
- change devicePlatformRect output to x/y instead of left/top to match a coordinate system
- fix UTs
* chore: refactor stuff
- rename function
- add screendata for deviceRectangles
* chore: improve readability for vars in utils
* chore: update baseline and workflow
* chore: last image updates
* chore: update latest deps
* fix: add fallback for Android and iOS mobile screensize
- add more UT's
* test: add more UT's
* fix: fix orientation and update ios images
* Add viewport context manager for managing device rectangles (#833)
* feat: add viewport context manager
* feat: add new context manager
- revert old one
- add a wrapper for each command that checks for changes
- fix screensizes when the orientation changes and provide better fallback
There is a TODO regarding Multiremote on the global browser
* chore: fix UT's
* chore: add a last test
* feat: enhance context manager
- add mobile context
- add wrapper per command
- add and fix UT's
* fix: multiple fixes
- fix capabilities, should be requested
- assumed that the `'mobile: deviceInfo` didn't return landscape info
- added new images for android
* fix: reset orientation
* Fix: fix iOS orientation and make it generic
* chore: new iOS images
* fix: support proper appium cap present
- add new images
- add nativeWebScreenshot for proper webviews screenshots
* test: add iOS for webview tests
- add new images
* fix: fix tests
* Ws/add bidi screenshot support (#831)
* feat: add bidi fullpage screenshot support
* chore: code optimizations
* chore: add changeset
* feat: deprecate root compare options (#832)
* feat: deprecate root compare options
* chore: add changeset
* Update packages/webdriver-image-comparison/src/helpers/options.ts
Co-authored-by: alcpereira <[email protected]>
* Update packages/webdriver-image-comparison/src/helpers/utils.ts
Co-authored-by: alcpereira <[email protected]>
* Update packages/webdriver-image-comparison/src/helpers/utils.ts
Co-authored-by: alcpereira <[email protected]>
* chore: updated the options docs
* chore: updated tests after feedback
---------
Co-authored-by: alcpereira <[email protected]>
* chore: rename new bidi flag
* chore: update deps
* chore: provide changelogs
---------
Co-authored-by: alcpereira <[email protected]>1 parent 80f65d2 commit 42956e4
File tree
172 files changed
+5415
-3730
lines changed- .changeset
- .github/workflows
- packages
- ocr-service
- src/utils
- tests/utils
- __snapshots__
- visual-reporter
- visual-service
- src
- tests
- __snapshots__
- webdriver-image-comparison
- src
- __snapshots__
- clientSideScripts
- __snapshots__
- commands
- helpers
- __snapshots__
- methods
- __snapshots__
- mocks
- tests
- configs
- lambdaTestBaseline
- desktop_chrome
- desktop_safari
- galaxy_tab_s8
- iphone_13_mini
- iphone_13_pro
- iphone_14_pro
- iphone_15_pro_max
- pixel_4
- pixel_9_pro
- sauceLabsBaseline
- google_pixel_4_xl_googleapi_emulator
- iphone_11_simulator
- iphone_12_pro_max_simulator
- iphone_12_simulator
- iphone_8_plus_simulator
- iphone_8_simulator
- iphone_xs_simulator
- specs
- __snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
172 files changed
+5415
-3730
lines changed| 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 | + | |
| 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 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments