Skip to content

Commit 35ddcf0

Browse files
committed
updated wdio versions and fixed tests
1 parent 1fbb7a4 commit 35ddcf0

3 files changed

Lines changed: 1391 additions & 157 deletions

File tree

apps/E2E/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"@types/jasmine": "5.1.4",
4141
"@types/node": "^22.2.0",
4242
"@types/react": "^18.2.0",
43-
"@wdio/appium-service": "^8.40.0",
44-
"@wdio/cli": "^8.40.0",
45-
"@wdio/globals": "^8.40.0",
46-
"@wdio/jasmine-framework": "^8.40.0",
47-
"@wdio/json-reporter": "^8.40.0",
48-
"@wdio/local-runner": "^8.40.0",
49-
"@wdio/spec-reporter": "^8.40.0",
43+
"@wdio/appium-service": "^9.12.6",
44+
"@wdio/cli": "^9.12.6",
45+
"@wdio/globals": "^9.12.6",
46+
"@wdio/jasmine-framework": "^9.12.6",
47+
"@wdio/json-reporter": "^9.12.6",
48+
"@wdio/local-runner": "^9.12.6",
49+
"@wdio/spec-reporter": "^9.12.6",
5050
"appium": "^2.11.2",
5151
"appium-mac2-driver": "^1.12.0",
5252
"appium-uiautomator2-driver": "^3.0.5",
@@ -56,7 +56,7 @@
5656
"rimraf": "^5.0.1",
5757
"ts-node": "^10.7.0",
5858
"typescript": "4.9.4",
59-
"webdriverio": "^8.40.0"
59+
"webdriverio": "^9.12.6"
6060
},
6161
"installConfig": {
6262
"hoistingLimits": "dependencies"

apps/E2E/src/common/BasePage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const PLATFORM = process.env['E2ETEST_PLATFORM'] as Platform;
2020
const NATIVE_TESTING = process.env['NATIVE_TESTING'] == 'true';
2121
export const COMPONENT_SCROLL_COORDINATES = { x: -0, y: -100 }; // These are the offsets. Y is negative because we want the touch to move up (and thus it scrolls down)
2222

23-
let rootView: WebdriverIO.Element | null = null;
23+
let rootView: WebdriverIO.Element | ChainablePromiseElement | null = null;
2424

2525
/* Win32/UWP-Specific Selector. We use this to get elements on the test page */
2626
export async function By(identifier: string) {
@@ -37,7 +37,7 @@ async function QueryWithChaining(identifier) {
3737
rootView = await $('~' + ROOT_VIEW);
3838
}
3939
const selector = '~' + identifier;
40-
let queryResult: WebdriverIO.Element;
40+
let queryResult: WebdriverIO.Element | ChainablePromiseElement;
4141
queryResult = await rootView.$(selector);
4242
if (queryResult.error) {
4343
// In some cases, such as opened ContextualMenu items, the element nodes are not children of the rootView node, meaning we need to start our search from the top of the tree.
@@ -133,7 +133,7 @@ export abstract class BasePage {
133133
* The advantage to this over testing using .isEqual in a spec is that this throws a detailed error if
134134
* the expected and actual values don't match. This should be called for attribute tests in specs. */
135135
async compareAttribute(
136-
element: Promise<WebdriverIO.Element>,
136+
element: WebdriverIO.Element | ChainablePromiseElement,
137137
attribute: Attribute | AndroidAttribute,
138138
expectedValue: any,
139139
): Promise<boolean> {

0 commit comments

Comments
 (0)