Skip to content

Commit 5c67b06

Browse files
committed
Renamed WorkStation Select ID
1 parent 8b2d7ef commit 5c67b06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MESS/MESS.Blazor/Components/Pages/ProductionLog/WorkStationSelect.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<div>
44
@if (WorkStations != null)
55
{
6-
<label for="product-select">Select Station</label>
7-
<select id="product-select" class="form-select" @onchange="async e => await OnWorkStationSelected.InvokeAsync(int.Parse(e.Value?.ToString() ?? string.Empty))">
6+
<label for="workstation-select">Select Station</label>
7+
<select id="workstation-select" class="form-select" @onchange="async e => await OnWorkStationSelected.InvokeAsync(int.Parse(e.Value?.ToString() ?? string.Empty))">
88
<option value="-1">Select Station</option>
99
@foreach (var workStation in WorkStations)
1010
{

MESS/MESS.Tests/UI Testing/ProductionLog/WorkStationSelectTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void WorkStationSelectComponentRendersWith1Selection()
1515
.Add(p => p.WorkStations, new List<WorkStation>()));
1616

1717
// Assert
18-
var selectElement = cut.Find("select#product-select");
18+
var selectElement = cut.Find("select#workstation-select");
1919
Assert.Equal(1, selectElement.Children.Length);
2020
}
2121

@@ -54,7 +54,7 @@ public void WorkStationSelectComponentFiresOnWorkStationSelectedEvent()
5454
}));
5555

5656
// Act
57-
var selectElement = cut.Find("select#product-select");
57+
var selectElement = cut.Find("select#workstation-select");
5858
selectElement.Change("2");
5959

6060
// Assert

0 commit comments

Comments
 (0)