Skip to content

Commit

Permalink
fix assertion on text (#879)
Browse files Browse the repository at this point in the history
remove deprecated test
  • Loading branch information
Dor-bl authored Dec 14, 2024
1 parent 9b035fe commit 4bbdb2b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/integration/IOS/SearchingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,9 @@ public void FindByAccessibilityIdTest()
By byAccessibilityId = new ByAccessibilityId("ComputeSumButton");
Assert.Multiple(() =>
{
Assert.That(Is.Not.EqualTo(_driver.FindElement(byAccessibilityId).Text), null);
Assert.That(string.IsNullOrEmpty(_driver.FindElement(byAccessibilityId).Text), Is.False);
Assert.That(_driver.FindElements(byAccessibilityId), Is.Not.Empty);
});
}

[Test]
public void FindByByIosUiAutomationTest()
{
By byIosUiAutomation = new ByIosUIAutomation(".elements().withName(\"Answer\")");
Assert.Multiple(() =>
{
Assert.That(_driver.FindElement(byIosUiAutomation).Text, Is.Not.Null);
Assert.That(_driver.FindElements(byIosUiAutomation), Is.Not.Empty);
});
}
}
}

0 comments on commit 4bbdb2b

Please sign in to comment.