|
1 | | -import { nsCapabilities, createDriver, AppiumDriver, DeviceOrientaion, logInfo } from "nativescript-dev-appium"; |
| 1 | +import { nsCapabilities, createDriver, AppiumDriver, DeviceOrientation, logInfo } from "nativescript-dev-appium"; |
2 | 2 | import { BottomNavigationBasePage } from "./bottom-navigation-base-page"; |
3 | 3 | import { assert } from "chai"; |
4 | 4 | import { setImageName } from "../../../helpers/image-helper"; |
@@ -28,8 +28,8 @@ describe(`${suite}-${spec}-suite`, async function () { |
28 | 28 |
|
29 | 29 | afterEach(async function () { |
30 | 30 | const orientation = await driver.getOrientation(); |
31 | | - if (orientation === DeviceOrientaion.LANDSCAPE) { |
32 | | - await driver.setOrientation(DeviceOrientaion.PORTRAIT); |
| 31 | + if (orientation === DeviceOrientation.LANDSCAPE) { |
| 32 | + await driver.setOrientation(DeviceOrientation.PORTRAIT); |
33 | 33 | } |
34 | 34 | if (this.currentTest.state === "failed") { |
35 | 35 | await driver.logTestArtifacts(this.currentTest.title); |
@@ -186,13 +186,13 @@ describe(`${suite}-${spec}-suite`, async function () { |
186 | 186 |
|
187 | 187 | it(`${spec}-fancy-fonts-change-orientation`, async function () { |
188 | 188 | await bottomNavigationBasePage.navigateToSample("fancy-fonts"); |
189 | | - await driver.setOrientation(DeviceOrientaion.LANDSCAPE); |
| 189 | + await driver.setOrientation(DeviceOrientation.LANDSCAPE); |
190 | 190 | await driver.imageHelper.compareScreen(); |
191 | 191 |
|
192 | 192 | await driver.backgroundApp(1); |
193 | 193 | await driver.imageHelper.compareScreen(); |
194 | 194 |
|
195 | | - // await driver.setOrientation(DeviceOrientaion.PORTRAIT); |
| 195 | + // await driver.setOrientation(DeviceOrientation.PORTRAIT); |
196 | 196 | await driver.imageHelper.compareScreen(); |
197 | 197 |
|
198 | 198 | assert.isTrue(driver.imageHelper.hasImageComparisonPassed()); |
|
0 commit comments