feat: Blazor tests added

This commit is contained in:
Mikhail Shabanov committed 2021-05-07 16:54:21 +02:00
1 parent b4378b643b
commit c60f622989
7 files changed
+309 -21

No files matched your search

@@ -0,0 +1,29 @@
using Bunit;
using NUnit.Framework;
using WotBlitzStatisticsPro.Blazor.Model;
using WotBlitzStatisticsPro.Blazor.Pages;
namespace WotBlitzStatisticsPro.Blazor.Tests.Pages
{
public class SearchDialogTests: TestContextBase
{
private IRenderedComponent<SearchDialog> _component;
[SetUp]
public void Setup()
{
_component = TestContext?.RenderComponent<SearchDialog>();
}
[TestCase(DialogType.FindPlayer)]
[TestCase(DialogType.FindClan)]
[Ignore("Search component is not implemented yet")]
public void ShouldRedirectToAppropriatePageWhenOkButtonClicked(DialogType dialogType)
{
// Find OK button by CSS and click
// Check OpenPlayerInfoMessage with appropriate accountId/clanId
}
}
}