mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
feat: Blazor tests added
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user