From 31e9178291f74666e50993fbb21b9d5a9c5c8aca Mon Sep 17 00:00:00 2001 From: Dor Blayzer <59066376+Dor-bl@users.noreply.github.com> Date: Fri, 27 Dec 2024 22:49:24 +0200 Subject: [PATCH] test: update ClipboardTest to use OneTimeSetUp and OneTimeTearDown, disable full reset (#882) --- test/integration/IOS/ClipboardTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/IOS/ClipboardTest.cs b/test/integration/IOS/ClipboardTest.cs index 478ac5d4..bafaf703 100644 --- a/test/integration/IOS/ClipboardTest.cs +++ b/test/integration/IOS/ClipboardTest.cs @@ -15,11 +15,11 @@ public class ClipboardTest private const string ClipboardTestString = "Hello Clipboard"; private const string Base64RegexPattern = @"^[a-zA-Z0-9\+/]*={0,2}$"; - [SetUp] + [OneTimeSetUp] public void Setup() { var capabilities = Caps.GetIosCaps(Apps.Get("iosUICatalogApp")); - capabilities.AddAdditionalAppiumOption(MobileCapabilityType.FullReset, true); + capabilities.AddAdditionalAppiumOption(MobileCapabilityType.FullReset, false); var serverUri = Env.ServerIsRemote() ? AppiumServers.RemoteServerUri : AppiumServers.LocalServiceUri; _driver = new IOSDriver(serverUri, capabilities, Env.InitTimeoutSec); @@ -94,7 +94,7 @@ public void WhenClipboardIsEmpty_GetClipboardTextShouldReturnEmptyString() Assert.That(() => _driver.GetClipboardText(), Is.Empty); } - [TearDown] + [OneTimeTearDown] public void TearDown() { if (_driver.IsLocked())