|
2 | 2 | # [6.0.0](https://github.com/NativeScript/nativescript-dev-appium/compare/5.3.0...6.0.0) (2019-08-08)
|
3 | 3 |
|
4 | 4 |
|
5 |
| -### Bug Fixes |
| 5 | +### Features |
6 | 6 |
|
7 |
| -* typos ([65c6aa3](https://github.com/NativeScript/nativescript-dev-appium/commit/65c6aa3)) |
8 |
| -* **image-helper:** increase image name ([#237](https://github.com/NativeScript/nativescript-dev-appium/issues/237)) ([c075af8](https://github.com/NativeScript/nativescript-dev-appium/commit/c075af8)) |
| 7 | +* driver.getOrientation() |
| 8 | +* driver.setOrientation(orientation: DeviceOrientation) |
| 9 | +* restartApp() |
| 10 | +* image-helper ([#236](https://github.com/NativeScript/nativescript-dev-appium/issues/236)) ([0d2c9fd](https://github.com/NativeScript/nativescript-dev-appium/commit/0d2c9fd)) |
| 11 | +* image-helper set counter to images ([#237](https://github.com/NativeScript/nativescript-dev-appium/issues/237)) ([c075af8](https://github.com/NativeScript/nativescript-dev-appium/commit/c075af8)) |
| 12 | +* resolve sym-linked storages ([#235](https://github.com/NativeScript/nativescript-dev-appium/issues/235)) ([ef270c9](https://github.com/NativeScript/nativescript-dev-appium/commit/ef270c9) |
9 | 13 |
|
10 | 14 |
|
11 |
| -### Features |
| 15 | +### BREAKING CHANGES: |
12 | 16 |
|
13 |
| -* image-helper ([#236](https://github.com/NativeScript/nativescript-dev-appium/issues/236)) ([0d2c9fd](https://github.com/NativeScript/nativescript-dev-appium/commit/0d2c9fd)) |
14 |
| -* resolve symlinked storages ([#235](https://github.com/NativeScript/nativescript-dev-appium/issues/235)) ([ef270c9](https://github.com/NativeScript/nativescript-dev-appium/commit/ef270c9)) |
| 17 | +nativescript-dev-appium already takes in account viewportRect which is provided by appium(1.10.0 and above). The view port rectangle will be used when the images are compared. Custom view port could be provided using: |
| 18 | + |
| 19 | +`appium capabilities : "viewportRect": {}` |
| 20 | + |
| 21 | +`driver.imageHelper.options.cropRectangle` |
| 22 | + |
| 23 | +`imageHelper.compareScreen({cropRectangle : {x, y, wight, height}});` |
| 24 | + |
| 25 | +#### Default image comparison tolerance |
| 26 | +Before: |
| 27 | +`1%` |
| 28 | +Now: |
| 29 | +`0%` |
| 30 | + |
| 31 | +driver.scrollTo() accepts IRectangle |
| 32 | +Before: |
| 33 | + |
| 34 | +`scrollTo(direction: Direction, element: any, startPoint: Point, yOffset: number, xOffset?: number, retryCount?: number)` |
| 35 | +Now: |
| 36 | + |
| 37 | +`scrollTo(direction: Direction, element: any, startPoint: Point, offsetPoint: Point, retryCount?: number): Promise<UIElement>;` |
| 38 | + |
| 39 | +#### In order to use platform specific images: |
| 40 | +Before: |
| 41 | + |
| 42 | +automatically |
| 43 | +Now: |
| 44 | + |
| 45 | +`driver.imageHelper.options.isDeviceSpecific = false;` |
15 | 46 |
|
16 | 47 |
|
17 | 48 |
|
|
22 | 53 | ### Bug Fixes
|
23 | 54 |
|
24 | 55 | * mochawesome reporter for windows ([#222](https://github.com/NativeScript/nativescript-dev-appium/issues/222)) ([bd612a6](https://github.com/NativeScript/nativescript-dev-appium/commit/bd612a6))
|
25 |
| -* skip propmting on post install when the console is not interactive ([1042328](https://github.com/NativeScript/nativescript-dev-appium/commit/1042328)) |
| 56 | +* skip prompting on post install when the console is not interactive ([1042328](https://github.com/NativeScript/nativescript-dev-appium/commit/1042328)) |
26 | 57 | * **device-controller:** token in server scenario ([c847536](https://github.com/NativeScript/nativescript-dev-appium/commit/c847536))
|
27 |
| -* undifined token ([52ec166](https://github.com/NativeScript/nativescript-dev-appium/commit/52ec166)) |
| 58 | +* undefined token ([52ec166](https://github.com/NativeScript/nativescript-dev-appium/commit/52ec166)) |
28 | 59 |
|
29 | 60 |
|
30 | 61 | ### Features
|
|
0 commit comments