From a64c14c0e59e9dd0ec5fcac5a3af84e400f8904b Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Tue, 21 Jan 2025 20:11:57 +0600 Subject: [PATCH] fix session restoration ui test (#3753) Task/Issue URL: https://app.asana.com/0/1202406491309510/1209193663115526/f **Description**: - fix failing test due to session state data not getting to record due to force termination --- .../xcschemes/DuckDuckGo Privacy Browser App Store.xcscheme | 3 +++ .../xcshareddata/xcschemes/DuckDuckGo Privacy Browser.xcscheme | 3 +++ UITests/StateRestorationTests.swift | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser App Store.xcscheme b/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser App Store.xcscheme index a5d9608b24..be7a5be52b 100644 --- a/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser App Store.xcscheme +++ b/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser App Store.xcscheme @@ -97,6 +97,9 @@ + + diff --git a/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser.xcscheme b/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser.xcscheme index 8a90105f09..4770cef240 100644 --- a/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser.xcscheme +++ b/DuckDuckGo.xcodeproj/xcshareddata/xcschemes/DuckDuckGo Privacy Browser.xcscheme @@ -126,6 +126,9 @@ + + diff --git a/UITests/StateRestorationTests.swift b/UITests/StateRestorationTests.swift index e25dd42620..74cfa599c8 100644 --- a/UITests/StateRestorationTests.swift +++ b/UITests/StateRestorationTests.swift @@ -79,7 +79,7 @@ class StateRestorationTests: UITestCase { "Site didn't load with the expected title in a reasonable timeframe." ) - app.terminate() + app.typeKey("q", modifierFlags: [.command]) app.launch() XCTAssertTrue(