Added RetryFactAttribute

This commit is contained in:
2025-11-15 23:04:37 +01:00
parent 07aaf468a8
commit 72b0ecf04f
6 changed files with 56 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ public class InventoryPageTests : IDisposable
_driver.FindElement(By.Id("scanBarcodeButton"));
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldShowCompleteViewModal()
{
AppHelper.Login(_driver);
@@ -62,7 +62,7 @@ public class InventoryPageTests : IDisposable
Assert.NotEmpty(_driver.FindElement(By.Id("detailPurchaseBy")).GetAttribute("value") ?? "");
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldShowSuccessToastOnInformationCorrect()
{
AppHelper.Login(_driver);
@@ -79,7 +79,7 @@ public class InventoryPageTests : IDisposable
Assert.True(AppHelper.TryRetryFindSuccessToast(_driver));
}
[Fact]
[RetryFact(5)]
public void InventoryPage_ShouldShowSuccessToastOnInformationUpdate()
{
AppHelper.Login(_driver);