diff --git a/src/AzureIoTHub.Portal.Server.Tests.Unit/Pages/Devices/DevicesListPageTests.cs b/src/AzureIoTHub.Portal.Server.Tests.Unit/Pages/Devices/DevicesListPageTests.cs index 752a4223d..cbfc776aa 100644 --- a/src/AzureIoTHub.Portal.Server.Tests.Unit/Pages/Devices/DevicesListPageTests.cs +++ b/src/AzureIoTHub.Portal.Server.Tests.Unit/Pages/Devices/DevicesListPageTests.cs @@ -123,9 +123,8 @@ public async Task WhenResetFilterButtonClickShouldClearFilters() this.mockRepository.VerifyAll(); } - [TestCase("newDeviceButton")] - [TestCase("tableAddItemButton")] - public void WhenAddNewDeviceClickShouldNavigateToNewDevicePage(string buttonName) + [Test] + public void WhenAddNewDeviceClickShouldNavigateToNewDevicePage() { // Arrange _ = this.mockHttpClient @@ -146,7 +145,7 @@ public void WhenAddNewDeviceClickShouldNavigateToNewDevicePage(string buttonName var cut = RenderComponent(); // Act - cut.WaitForElement($"#{buttonName}").Click(); + cut.WaitForElement($"#addDeviceButton").Click(); cut.WaitForAssertion(() => string.Equals("http://localhost/devices/new", mockNavigationManager.Uri, StringComparison.OrdinalIgnoreCase)); // Assert diff --git a/src/AzureIoTHub.Portal/Client/Pages/DeviceModels/DeviceModelListPage.razor b/src/AzureIoTHub.Portal/Client/Pages/DeviceModels/DeviceModelListPage.razor index 87b9586bb..8209ccd65 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/DeviceModels/DeviceModelListPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/DeviceModels/DeviceModelListPage.razor @@ -37,7 +37,7 @@ Device Models - + @@ -69,10 +69,7 @@ } - - - - + @code { diff --git a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor index 0ee4d2c5c..528f59518 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor @@ -1,5 +1,6 @@ @page "/devices/{DeviceID}" @using AzureIoTHub.Portal.Client.Pages.Devices.LoRaWAN +@using AzureIoTHub.Portal.Client.Pages.Edge_Devices @using AzureIoTHub.Portal.Client.Validators @using AzureIoTHub.Portal.Models @using AzureIoTHub.Portal.Models.v10 diff --git a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceListPage.razor b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceListPage.razor index 035ca0f4e..ffce61a82 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceListPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceListPage.razor @@ -87,7 +87,7 @@ Devices - + @@ -151,10 +151,7 @@ - - - - + @code { diff --git a/src/AzureIoTHub.Portal/Client/Pages/Edge_Devices/EdgeDeviceListPage.razor b/src/AzureIoTHub.Portal/Client/Pages/Edge_Devices/EdgeDeviceListPage.razor index 6e7c4cfe3..a26e9f468 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/Edge_Devices/EdgeDeviceListPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/Edge_Devices/EdgeDeviceListPage.razor @@ -67,7 +67,7 @@ Gateways - + ID @@ -112,9 +112,6 @@ - - - @code { diff --git a/src/AzureIoTHub.Portal/Client/Pages/LoRaWAN/Concentrator/ConcentratorListPage.razor b/src/AzureIoTHub.Portal/Client/Pages/LoRaWAN/Concentrator/ConcentratorListPage.razor index 32ec5a400..b79a75246 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/LoRaWAN/Concentrator/ConcentratorListPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/LoRaWAN/Concentrator/ConcentratorListPage.razor @@ -24,7 +24,7 @@ LoRaWAN Concentrators - + Device @@ -76,9 +76,7 @@ - - - + @code {