@applitools/screenshoter 3.2.9 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.bongo/dry-run/package-lock.json +11 -11
  2. package/.bongo/dry-run.tgz +0 -0
  3. package/CHANGELOG.md +6 -0
  4. package/index.js +2 -1
  5. package/logs/screenshot_2021_12_16_19_06_06_332Z_full_app_failed_1639681566332.png +0 -0
  6. package/logs/screenshot_2021_12_16_19_15_59_935Z_full_app_failed_1639682159935.png +0 -0
  7. package/logs/screenshot_2021_12_16_19_33_20_679Z_full_app_failed_1639683200679.png +0 -0
  8. package/logs/screenshot_2021_12_16_19_37_22_120Z_ios_viewport_failed.png +0 -0
  9. package/logs/screenshot_2021_12_16_19_38_09_461Z_ios_full_page_failed.png +0 -0
  10. package/logs/screenshot_2021_12_16_19_59_45_182Z_ios_viewport_failed.png +0 -0
  11. package/package.json +5 -5
  12. package/src/find-image-pattern.js +10 -38
  13. package/src/image.js +104 -64
  14. package/src/take-screenshot.js +136 -160
  15. package/src/take-simple-screenshot.js +25 -0
  16. package/src/take-stitched-screenshot.js +32 -52
  17. package/src/take-viewport-screenshot.js +179 -16
  18. package/test/e2e/android.spec.js +42 -11
  19. package/test/e2e/external.spec.js +81 -10
  20. package/test/e2e/ios.spec.js +48 -10
  21. package/test/e2e/web-ios.spec.js +3 -5
  22. package/test/e2e/web.spec.js +20 -15
  23. package/test/fixtures/android/app-fully-non-scrollable.png +0 -0
  24. package/test/fixtures/android/app-fully-recycler.png +0 -0
  25. package/test/fixtures/android/app-fully-scroll-statusbar.png +0 -0
  26. package/test/fixtures/android/app-fully-scroll.png +0 -0
  27. package/test/fixtures/android/app-statusbar.png +0 -0
  28. package/test/fixtures/android/x-app-fully-collapsing.png +0 -0
  29. package/test/fixtures/android/x-app-fully-recycler.png +0 -0
  30. package/test/fixtures/android/x-element-fully.png +0 -0
  31. package/test/fixtures/image/{house.combined-higher-wider.png → house.framed-higher-wider.png} +0 -0
  32. package/test/fixtures/image/{house.combined-higher.png → house.framed-higher.png} +0 -0
  33. package/test/fixtures/image/house.framed-shorter-thinner.png +0 -0
  34. package/test/fixtures/image/{house.combined-wider.png → house.framed-wider.png} +0 -0
  35. package/test/fixtures/ios/app-fully-collapsing.png +0 -0
  36. package/test/fixtures/ios/app-fully-collection.png +0 -0
  37. package/test/fixtures/ios/app-fully-overlapped-statusbar.png +0 -0
  38. package/test/fixtures/ios/app-fully-overlapped.png +0 -0
  39. package/test/fixtures/ios/app-fully-scroll-statusbar.png +0 -0
  40. package/test/fixtures/ios/app-fully-scroll.png +0 -0
  41. package/test/fixtures/ios/app-fully-superview.png +0 -0
  42. package/test/fixtures/ios/app-fully-table.png +0 -0
  43. package/test/fixtures/ios/app-statusbar.png +0 -0
  44. package/test/fixtures/ios/app.png +0 -0
  45. package/test/fixtures/ios/element-fully.png +0 -0
  46. package/test/fixtures/ios/element.png +0 -0
  47. package/test/fixtures/ios/region.png +0 -0
  48. package/test/fixtures/pattern/iPad_5th_landscape.png +0 -0
  49. package/test/fixtures/pattern/iPad_5th_portrait.png +0 -0
  50. package/test/fixtures/pattern/iPad_9th_landscape.png +0 -0
  51. package/test/fixtures/pattern/iPad_9th_portrait.png +0 -0
  52. package/test/fixtures/pattern/iPhone_11_landscape.png +0 -0
  53. package/test/fixtures/pattern/iPhone_11_portrait.png +0 -0
  54. package/test/fixtures/pattern/iPhone_13_landscape.png +0 -0
  55. package/test/fixtures/pattern/iPhone_13_portrait.png +0 -0
  56. package/test/fixtures/pattern/iPhone_SE_landscape.png +0 -0
  57. package/test/fixtures/pattern/iPhone_SE_portrait.png +0 -0
  58. package/test/fixtures/pattern/iPhone_XS_portrait_noviewport.png +0 -0
  59. package/test/fixtures/web-ios/page-fully.png +0 -0
  60. package/test/fixtures/web-ios/page.png +0 -0
  61. package/test/it/find-pattern.spec.js +16 -11
  62. package/test/it/image.spec.js +42 -15
  63. package/logs/screenshot_2021_11_14_12_35_00_342Z_full_frame_failed.png +0 -0
  64. package/logs/screenshot_2021_11_14_12_38_00_715Z_frame_failed.png +0 -0
  65. package/logs/screenshot_2021_11_14_12_38_03_866Z_frame_failed.png +0 -0
  66. package/logs/screenshot_2021_11_14_13_02_56_464Z_full_app_failed_1636894976464.png +0 -0
  67. package/logs/screenshot_2021_11_14_13_04_27_904Z_full_app_failed_1636895067904.png +0 -0
  68. package/logs/screenshot_2021_11_14_13_06_13_662Z_full_app_failed_1636895173662.png +0 -0
  69. package/logs/screenshot_2021_11_14_13_06_23_745Z_full_app_failed_1636895183745.png +0 -0
  70. package/logs/screenshot_2021_11_14_13_18_31_571Z_full_app_failed_1636895911571.png +0 -0
  71. package/logs/screenshot_2021_11_14_13_25_54_557Z_viewport_failed_1636896354557.png +0 -0
  72. package/logs/screenshot_2021_11_14_13_29_32_326Z_viewport_failed_1636896572326.png +0 -0
  73. package/logs/screenshot_2021_11_14_13_34_22_483Z_viewport_failed_1636896862483.png +0 -0
  74. package/logs/screenshot_2021_11_14_13_37_25_734Z_viewport_failed_1636897045734.png +0 -0
  75. package/logs/screenshot_2021_11_14_13_42_25_024Z_viewport_failed_1636897345024.png +0 -0
  76. package/logs/screenshot_2021_11_14_13_57_24_366Z_full_app_failed_1636898244366.png +0 -0
  77. package/logs/screenshot_2021_11_14_14_20_42_951Z_full_app_failed_1636899642951.png +0 -0
  78. package/logs/screenshot_2021_11_14_14_31_07_853Z_full_app_failed_1636900267853.png +0 -0
  79. package/logs/screenshot_2021_11_14_14_32_07_195Z_full_app_failed_1636900327195.png +0 -0
  80. package/logs/screenshot_2021_11_14_14_42_16_716Z_full_app_failed_1636900936716.png +0 -0
  81. package/logs/screenshot_2021_11_14_14_47_37_646Z_full_app_failed_1636901257646.png +0 -0
  82. package/logs/screenshot_2021_11_14_14_54_18_522Z_full_app_failed_1636901658522.png +0 -0
  83. package/logs/screenshot_2021_11_14_14_55_36_756Z_full_app_failed_1636901736756.png +0 -0
  84. package/logs/screenshot_2021_11_14_15_00_26_000Z_full_app_failed_1636902026000.png +0 -0
  85. package/logs/screenshot_2021_11_14_15_04_13_598Z_full_app_failed_1636902253598.png +0 -0
  86. package/logs/screenshot_2021_11_14_15_07_37_914Z_full_app_failed_1636902457914.png +0 -0
  87. package/logs/screenshot_2021_11_14_15_12_20_039Z_full_app_failed_1636902740039.png +0 -0
  88. package/logs/screenshot_2021_11_14_15_15_44_401Z_full_app_failed_1636902944401.png +0 -0
  89. package/logs/screenshot_2021_11_14_15_26_23_318Z_viewport_failed_1636903583318.png +0 -0
  90. package/src/calculate-screenshot-regions.js +0 -31
  91. package/src/screenshoter.js +0 -159
  92. package/test/fixtures/pattern/iPad_Air_portrait.png +0 -0
  93. package/test/fixtures/pattern/iPhone_5S_landscape.png +0 -0
  94. package/test/fixtures/pattern/iPhone_XR_perfecto_landscape.png +0 -0
  95. package/test/fixtures/pattern/iPhone_XS_Max_perfecto_landscape.png +0 -0
  96. package/test/fixtures/pattern/iPhone_XS_landscape.png +0 -0
  97. package/test/fixtures/pattern/iPhone_XS_portrait.png +0 -0
  98. package/test/fixtures/pattern/iPhone_X_perfecto_portrait.png +0 -0