mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fix flaky automation tests
This commit is contained in:
@@ -18,7 +18,6 @@ namespace NzbDrone.Automation.Test
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Retry(3)]
|
|
||||||
public void indexer_page()
|
public void indexer_page()
|
||||||
{
|
{
|
||||||
_page.MovieNavIcon.Click();
|
_page.MovieNavIcon.Click();
|
||||||
@@ -31,7 +30,6 @@ namespace NzbDrone.Automation.Test
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Retry(3)]
|
|
||||||
public void system_page()
|
public void system_page()
|
||||||
{
|
{
|
||||||
_page.SystemNavIcon.Click();
|
_page.SystemNavIcon.Click();
|
||||||
|
@@ -39,6 +39,10 @@ namespace NzbDrone.Automation.Test.PageModel
|
|||||||
var element = d.FindElement(By.ClassName("followingBalls"));
|
var element = d.FindElement(By.ClassName("followingBalls"));
|
||||||
return !element.Displayed;
|
return !element.Displayed;
|
||||||
}
|
}
|
||||||
|
catch (StaleElementReferenceException)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
catch (NoSuchElementException)
|
catch (NoSuchElementException)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user