Skip to content

Commit

Permalink
test: update ClipboardTest to use OneTimeSetUp and OneTimeTearDown, d…
Browse files Browse the repository at this point in the history
…isable full reset (#882)
  • Loading branch information
Dor-bl authored Dec 27, 2024
1 parent a833468 commit 31e9178
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/IOS/ClipboardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -94,7 +94,7 @@ public void WhenClipboardIsEmpty_GetClipboardTextShouldReturnEmptyString()
Assert.That(() => _driver.GetClipboardText(), Is.Empty);
}

[TearDown]
[OneTimeTearDown]
public void TearDown()
{
if (_driver.IsLocked())
Expand Down

0 comments on commit 31e9178

Please sign in to comment.