File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
src/Components/test/E2ETest/Tests Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -121,4 +121,31 @@ public void AdditionalAttributesApplied()
121121 Assert . Equal ( "somevalue" , grid . GetAttribute ( "custom-attrib" ) ) ;
122122 Assert . Contains ( "custom-class-attrib" , grid . GetAttribute ( "class" ) ? . Split ( " " ) ) ;
123123 }
124+
125+ [ Fact ]
126+ public void CanOpenColumnOptions ( )
127+ {
128+ var grid = app . FindElement ( By . CssSelector ( "#grid > table" ) ) ;
129+ var firstNameColumnOptionsButton = grid . FindElement ( By . CssSelector ( "thead > tr > th:nth-child(2) > div > button[title=\" Column options\" ]" ) ) ;
130+
131+ firstNameColumnOptionsButton . Click ( ) ;
132+
133+ var firstNameSearchSelector = "thead > tr > th:nth-child(2) input[type=search]" ;
134+ app . Exists ( By . CssSelector ( firstNameSearchSelector ) ) ;
135+ }
136+
137+ [ Fact ]
138+ public void CanCloseColumnOptions ( )
139+ {
140+ var grid = app . FindElement ( By . CssSelector ( "#grid > table" ) ) ;
141+ var firstNameColumnOptionsButton = grid . FindElement ( By . CssSelector ( "thead > tr > th:nth-child(2) > div > button[title=\" Column options\" ]" ) ) ;
142+
143+ firstNameColumnOptionsButton . Click ( ) ;
144+
145+ // Click outside the column options to close
146+ grid . FindElement ( "tbody" ) . Click ( ) ;
147+
148+ var firstNameSearchSelector = "thead > tr > th:nth-child(2) input[type=search]" ;
149+ app . DoesNotExist ( By . CssSelector ( firstNameSearchSelector ) ) ;
150+ }
124151}
You can’t perform that action at this time.
0 commit comments