File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
testassets/BasicTestApp/QuickGridTest Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,7 @@ public void PaginatorDisplaysCorrectItemCount()
118
118
public void AdditionalAttributesApplied ( )
119
119
{
120
120
var grid = app . FindElement ( By . CssSelector ( "#grid > table" ) ) ;
121
-
122
- var idValue = grid . GetAttribute ( "id" ) ;
123
- var styleValue = grid . GetAttribute ( "style" ) ;
124
- var classList = grid . GetAttribute ( "class" ) ? . Split ( " " ) ;
125
-
126
- Assert . Equal ( "quick-grid" , idValue ) ;
127
- Assert . Equal ( "color:red;" , styleValue ) ;
128
- Assert . Contains ( "custom-class" , classList ) ;
121
+ Assert . Equal ( "somevalue" , grid . GetAttribute ( "custom-attrib" ) ) ;
122
+ Assert . Contains ( "custom-class-attrib" , grid . GetAttribute ( "class" ) ? . Split ( " " ) ) ;
129
123
}
130
124
}
Original file line number Diff line number Diff line change 3
3
<h3 >Sample QuickGrid Component</h3 >
4
4
5
5
<div id =" grid" >
6
- <QuickGrid Items =" @FilteredPeople" Pagination =" @pagination" id = " quick-grid " style = " color : red ; " class =" custom-css " >
6
+ <QuickGrid Items =" @FilteredPeople" Pagination =" @pagination" custom-attrib = " somevalue " class =" custom-class-attrib " >
7
7
<PropertyColumn Property =" @(p => p.PersonId)" Sortable =" true" />
8
8
<PropertyColumn Property =" @(p => p.firstName)" Sortable =" true" >
9
9
<ColumnOptions >
You can’t perform that action at this time.
0 commit comments