Skip to content

Commit

Permalink
Fix #1901 - Add class name in rows to identfy tag in DOM (#1917)
Browse files Browse the repository at this point in the history
* Fix #1901 - Add class name in rows to identfy tag in DOM

* Fix E2E test
  • Loading branch information
kbeaugrand authored Mar 18, 2023
1 parent e9fbb6c commit ee40e2f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<MudGrid>
<MudItem xs="12">
<MudTable Items="@Tags" Loading="isProcessing" Dense=true Hover=true Bordered=true Striped=true>
<MudTable Items="@Tags" Loading="isProcessing" Dense=true Hover=true Bordered=true Striped=true RowClassFunc="@((DeviceTagModel m, int index) => $"tag-{m.Name}")">

<ToolBarContent>
<MudText Typo="Typo.h6">Tags</MudText>
Expand Down
16 changes: 14 additions & 2 deletions src/AzureIoTHub.Portal.Tests.E2E/Pages/EdgeModelPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,22 @@ public void SearchEdgeModel(string description)
WebDriverFactory.Default.FindElement(By.Id("edge-model-search-keyword")).SendKeys(description);

_ = wait.Until(d => d.FindElement(By.Id("edge-model-search-button")).Displayed);
WebDriverFactory.Default.FindElement(By.Id("edge-model-search-button")).Click();
}

WebDriverFactory.Default.FindElement(By.Id("edge-model-search-button")).Click();

_ = wait.Until(d =>
{
try
{
_ = WebDriverFactory.Default.FindElement(By.ClassName("mud-table-loading"));
return false;
}
catch (NoSuchElementException)
{
return true;
}
});
}


public void RemoveEdgeModel(string name)
Expand Down

0 comments on commit ee40e2f

Please sign in to comment.