Skip to content

Commit

Permalink
Fix E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Aug 14, 2023
1 parent 8af7987 commit 127888d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/Components/test/E2ETest/Tests/QuickGridTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,7 @@ public void PaginatorDisplaysCorrectItemCount()
public void AdditionalAttributesApplied()
{
var grid = app.FindElement(By.CssSelector("#grid > table"));

var idValue = grid.GetAttribute("id");
var styleValue = grid.GetAttribute("style");
var classList = grid.GetAttribute("class")?.Split(" ");

Assert.Equal("quick-grid", idValue);
Assert.Equal("color:red;", styleValue);
Assert.Contains("custom-class", classList);
Assert.Equal("somevalue", grid.GetAttribute("custom-attrib"));
Assert.Contains("custom-class-attrib", grid.GetAttribute("class")?.Split(" "));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h3>Sample QuickGrid Component</h3>

<div id="grid">
<QuickGrid Items="@FilteredPeople" Pagination="@pagination" id="quick-grid" style="color:red;" class="custom-css">
<QuickGrid Items="@FilteredPeople" Pagination="@pagination" custom-attrib="somevalue" class="custom-class-attrib">
<PropertyColumn Property="@(p => p.PersonId)" Sortable="true" />
<PropertyColumn Property="@(p => p.firstName)" Sortable="true">
<ColumnOptions>
Expand Down

0 comments on commit 127888d

Please sign in to comment.