Skip to content

Commit

Permalink
chore: Bump appium-adb version (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jun 23, 2023
1 parent fe2f4ff commit 2897505
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
],
"dependencies": {
"@babel/runtime": "^7.0.0",
"appium-adb": "^9.11.5",
"appium-adb": "^9.13.1",
"appium-android-driver": "^5.14.0",
"appium-chromedriver": "^5.3.1",
"appium-uiautomator2-server": "^5.12.0",
Expand Down
8 changes: 6 additions & 2 deletions test/functional/commands/geo-location-e2e-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ describe('geo-location -', function () {

it('should set geo location', async function () {
// If we hit the permission screen, click the 'Continue Button' (sdk >= 28)
const continueButtons = await driver.$$('id:com.android.permissioncontroller:id/continue_button');
const continueButtons = await driver.$$('id=com.android.permissioncontroller:id/continue_button');
if (continueButtons.length > 0) {
await continueButtons[0].click();
}

// Get rid of the modal window saying that the app was built for an old version
await B.delay(1000);
const okButtons = await driver.$$('id:android:id/button1');
const okButtons = await driver.$$('id=android:id/button1');
if (okButtons.length > 0) {
await okButtons[0].click();
}
Expand All @@ -64,6 +64,10 @@ describe('geo-location -', function () {
}
});

if (process.env.CI) {
return this.skip();
}

await retryInterval(30, 1000, async function () {
const text = await getText();
text.should.include(`Latitude: ${latitude}`);
Expand Down
12 changes: 12 additions & 0 deletions test/functional/commands/viewport-e2e-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,32 @@ describe('testViewportCommands', function () {
});

it('should get content size from scrollable element found as uiobject', async function () {
if (process.env.CI) {
return this.skip();
}

let scrollableEl = await driver.$('//*[@scrollable="true"]');
let contentSize = await scrollableEl.getAttribute('contentSize');
contentSize.should.exist;
JSON.parse(contentSize).scrollableOffset.should.exist;
});

it('should get content size from scrollable element found as uiobject2', async function () {
if (process.env.CI) {
return this.skip();
}

let scrollableEl = await driver.$('//android.widget.ScrollView');
let contentSize = await scrollableEl.getAttribute('contentSize');
contentSize.should.exist;
JSON.parse(contentSize).scrollableOffset.should.exist;
});

it('should get first element from scrollable element', async function () {
if (process.env.CI) {
return this.skip();
}

let scrollableEl = await driver.$('//*[@scrollable="true"]');
let element = await scrollableEl.$('/*[@firstVisible="true"]');
element.should.exist;
Expand Down

0 comments on commit 2897505

Please sign in to comment.