From 18eddc3c48a8361182511a14e46915d6db71cda2 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Fri, 6 Sep 2024 14:57:00 -0700 Subject: [PATCH 1/2] fix: safari process management will be done by WDA for real devices (#2464) * fix: safari process management will be done by WDA * simplify condition --- lib/real-device.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/lib/real-device.js b/lib/real-device.js index 9d84b696b..af1998bfa 100644 --- a/lib/real-device.js +++ b/lib/real-device.js @@ -314,18 +314,11 @@ export class RealDevice { * @param {import('./driver').XCUITestDriverOpts} opts * @returns {Promise} */ - async reset({bundleId, fullReset, platformVersion}) { - if (!bundleId) { - return; - } - - if (bundleId === SAFARI_BUNDLE_ID) { - this.log.debug('Reset requested. About to terminate Safari'); - await this.terminateApp(bundleId, String(platformVersion)); - return; - } - - if (!fullReset) { + async reset({bundleId, fullReset}) { + if (!bundleId || !fullReset || bundleId === SAFARI_BUNDLE_ID) { + // Safari cannot be removed as system app. + // Safari process handling will be managed by WDA + // with noReset, forceAppLaunch or shouldTerminateApp capabilities. return; } From 960861aad0d5a271ee2b104c4e6c61bfdefc7ed9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 6 Sep 2024 21:58:44 +0000 Subject: [PATCH 2/2] chore(release): 7.26.1 [skip ci] ## [7.26.1](https://github.com/appium/appium-xcuitest-driver/compare/v7.26.0...v7.26.1) (2024-09-06) ### Bug Fixes * safari process management will be done by WDA for real devices ([#2464](https://github.com/appium/appium-xcuitest-driver/issues/2464)) ([18eddc3](https://github.com/appium/appium-xcuitest-driver/commit/18eddc3c48a8361182511a14e46915d6db71cda2)) --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed7760995..46ad219d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [7.26.1](https://github.com/appium/appium-xcuitest-driver/compare/v7.26.0...v7.26.1) (2024-09-06) + +### Bug Fixes + +* safari process management will be done by WDA for real devices ([#2464](https://github.com/appium/appium-xcuitest-driver/issues/2464)) ([18eddc3](https://github.com/appium/appium-xcuitest-driver/commit/18eddc3c48a8361182511a14e46915d6db71cda2)) + ## [7.26.0](https://github.com/appium/appium-xcuitest-driver/compare/v7.25.0...v7.26.0) (2024-09-05) ### Features diff --git a/package.json b/package.json index 70f368960..f2abd307e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "xcuitest", "xctest" ], - "version": "7.26.0", + "version": "7.26.1", "author": "Appium Contributors", "license": "Apache-2.0", "repository": {