Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## [1.0.0](https://github.com/mobile-next/mobilecli/releases/tag/1.0.0) (2026-08-01)
* Fix(ios): Find the right iOS resigner matching provisioning profile ([#325](https://github.com/mobile-next/mobilecli/pull/325))
* Feat(android): Report selected state in Android UI dump ([#320](https://github.com/mobile-next/mobilecli/pull/320)), thanks to [@sjy](https://github.com/sjy)
* Fix(android): Add timeout on getprop in case adbd needs a kill-server ([#322](https://github.com/mobile-next/mobilecli/pull/322))
* Fix(ios): Correct iOS UI dump positions for elements in nested windows ([#321](https://github.com/mobile-next/mobilecli/pull/321), [devicekit-ios#55](https://github.com/mobile-next/devicekit-ios/pull/55))
* Fix(ios): Restore Xcode 26.5 testing support and fix simulator agent version checks and upgrades ([#324](https://github.com/mobile-next/mobilecli/pull/324), [devicekit-ios#57](https://github.com/mobile-next/devicekit-ios/pull/57))

## [0.3.89](https://github.com/mobile-next/mobilecli/releases/tag/0.3.89) (2026-07-30)
* Feat: Add windows arm64 build ([#314](https://github.com/mobile-next/mobilecli/pull/314), closes [#305](https://github.com/mobile-next/mobilecli/issues/305))
* Feat: Report enabled and checked state in android ui dump ([#317](https://github.com/mobile-next/mobilecli/pull/317), see [mobilewright#252](https://github.com/mobile-next/mobilewright/pull/252))
* Feat(android): Report enabled and checked state in android ui dump ([#317](https://github.com/mobile-next/mobilecli/pull/317), see [mobilewright#252](https://github.com/mobile-next/mobilewright/pull/252))
* Docs: How to run e2e tests ([#316](https://github.com/mobile-next/mobilecli/pull/316))

## [0.3.88](https://github.com/mobile-next/mobilecli/releases/tag/0.3.88) (2026-07-29)
Expand Down
3 changes: 2 additions & 1 deletion test/android.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ test.describe('Android Tests', () => {
test('should launch Settings app and verify it is in foreground', async () => {
test.skip(!device, 'No Android device found');

clearSettingsTask(device!.id);
launchApp(device!.id, SETTINGS_PACKAGE);
await sleep(3000);

Expand All @@ -157,7 +158,7 @@ test.describe('Android Tests', () => {
launchApp(device!.id, SETTINGS_PACKAGE);
await sleep(3000);

terminateApp(device!.id, SETTINGS_PACKAGE);
clearSettingsTask(device!.id);
await sleep(3000);

expect(getForegroundApp(device!.id).data.packageName).toMatch(LAUNCHER_PACKAGE_PATTERN);
Expand Down
33 changes: 0 additions & 33 deletions test/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,31 +382,6 @@ test.describe('rpc methods against a live device', () => {
result.forEach(expectAppShape);
});

test('device.apps.launch and device.apps.foreground should agree', async () => {
test.skip(!device, 'no device found');

const bundleId = settingsPackageFor(device!.platform);
await rpcExpectResult('device.apps.launch', {deviceId: device!.id, bundleId});
await sleep(5000);

const foreground = await rpcExpectResult('device.apps.foreground', {deviceId: device!.id});
expectForegroundAppShape(foreground);
expect(foreground.packageName).toBe(bundleId);
});

test('device.apps.terminate should stop the running app', async () => {
test.skip(!device, 'no device found');

const bundleId = settingsPackageFor(device!.platform);
await rpcExpectResult('device.apps.launch', {deviceId: device!.id, bundleId});
await sleep(5000);
await rpcExpectResult('device.apps.terminate', {deviceId: device!.id, bundleId});
await sleep(3000);

const foreground = await rpcExpectResult('device.apps.foreground', {deviceId: device!.id});
expect(foreground.packageName).not.toBe(bundleId);
});

test('device.dump.ui should return a non-empty element tree', async () => {
test.skip(!device, 'no device found');

Expand Down Expand Up @@ -448,14 +423,6 @@ test.describe('rpc methods against a live device', () => {
});

// Helper functions
function sleep(ms: number): Promise<void> {
return new Promise(resolve => setTimeout(resolve, ms));
}

function settingsPackageFor(platform: string): string {
return platform === 'android' ? 'com.android.settings' : 'com.apple.Preferences';
}

async function rpc(method: string, params?: any): Promise<JSONRPCResponse> {
const payload: JSONRPCRequest = {jsonrpc: '2.0', method, id: 1};
if (params !== undefined) {
Expand Down
Loading