Merge pull request #27 from JonathanMcCaffrey/5-add-complex-search-tests
5 add complex search tests
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
@onclick:stopPropagation="true">
|
||||
|
||||
<FormLayoutComponent>
|
||||
<FormTextComponent OnFocus="OnFocus" Id="search-input-box" Placeholder="Search..." OnInput="SearchChanged"></FormTextComponent>
|
||||
<FormTextComponent OnFocus="OnFocus" Id="searchInput" Placeholder="Search..." OnInput="SearchChanged"></FormTextComponent>
|
||||
</FormLayoutComponent>
|
||||
|
||||
<div class="searchBox">
|
||||
@@ -134,7 +134,7 @@
|
||||
|
||||
private void FocusTimer(object? sender, ElapsedEventArgs e)
|
||||
{
|
||||
jsRuntime.InvokeVoidAsync("SetFocusToElement", "search-input-box");
|
||||
jsRuntime.InvokeVoidAsync("SetFocusToElement", "searchInput");
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
else if (_entity == null)
|
||||
{
|
||||
<PaperComponent>
|
||||
<div>Invalid entity name entered: @Text</div>
|
||||
<div>No such entity. Did you mean <b>"Throne"</b>?</div>
|
||||
<div>Invalid entity name entered: <span id="invalidSearch">@Text</span></div>
|
||||
<div>No such entity. Did you mean <b>"<span id="validSearch">Throne</span>"</b>?</div>
|
||||
</PaperComponent>
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
var isVanguard = Entity.VanguardAdded() != null ? " vanguard" : "";
|
||||
|
||||
<div class="entitiesContainer @isVanguard">
|
||||
<div id="@Entity.EntityType.ToLower()-@Entity.Info().Name.ToLower()" class="entitiesContainer @isVanguard">
|
||||
<EntityHeaderComponent></EntityHeaderComponent>
|
||||
<div class="entityPartsContainer">
|
||||
<EntityVanguardAddedComponent></EntityVanguardAddedComponent>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@if (StyleType.Equals("Plain"))
|
||||
{
|
||||
<div>
|
||||
<b>@Entity?.Info().Name</b>
|
||||
<b id="entityName">@Entity?.Info().Name</b>
|
||||
@if (Entity?.Info().Descriptive != DescriptiveType.None)
|
||||
{
|
||||
<span>, @Entity?.Info().Descriptive.Replace("_", " ")</span>
|
||||
@@ -11,7 +11,7 @@
|
||||
else
|
||||
{
|
||||
<div class="entityHeader">
|
||||
<div class="entityHeaderText">
|
||||
<div id="entityName" class="entityHeaderText">
|
||||
@Entity?.Info().Name
|
||||
</div>
|
||||
<div style="font-size:1.4rem;">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
@if (!Vitality.Health.Equals(0))
|
||||
{
|
||||
<div>
|
||||
<b>Health:</b> @Vitality.Health
|
||||
<b>Health:</b> <span id="entityHealth">@Vitality.Health</span>
|
||||
</div>
|
||||
}
|
||||
@if (!Vitality.Energy.Equals(0))
|
||||
@@ -90,7 +90,7 @@
|
||||
@if (!Vitality.Health.Equals(0))
|
||||
{
|
||||
<div>
|
||||
<b>Health:</b> @Vitality.Health
|
||||
<b>Health:</b> <span id="entityHealth">@Vitality.Health</span>
|
||||
</div>
|
||||
}
|
||||
@if (!Vitality.Energy.Equals(0))
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<button class="choiceButton @styleClass" @onclick="@(e => OnChangeEntity(choice))">@choice.Replace("_", " ")</button>
|
||||
}
|
||||
</div>
|
||||
<FormTextComponent Label="Search Label" Placeholder="Throne..." OnChange="@(e => EntityFilterService.EnterSearchText(e.Value!.ToString()!))"/>
|
||||
<FormTextComponent Id="filterName" Label="Filter Name" Placeholder="Throne..." OnChange="@(e => EntityFilterService.EnterSearchText(e.Value!.ToString()!))"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</FormSelectComponent>
|
||||
|
||||
|
||||
<FormTextComponent Label="Search Label" Placeholder="Throne..." OnChange="OnSearchTextChanged"/>
|
||||
<FormTextComponent Id="filterName" Label="Filter Name" Placeholder="Throne..." OnChange="OnSearchTextChanged"/>
|
||||
</FormLayoutComponent>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user