File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,35 @@ registerSuite("Labels (auth)", {
109
109
assert . notInclude ( "is-active" , className ) ;
110
110
} )
111
111
. end ( ) ;
112
+ } ,
113
+
114
+ "Label editor filters label list based on entered text" : function ( ) {
115
+ var count = 0 ;
116
+ return FunctionalHelpers . openPage (
117
+ this ,
118
+ url ( "/issues/100" ) ,
119
+ ".js-LabelEditorLauncher" ,
120
+ true /* longerTimeout */
121
+ )
122
+ . findByCssSelector ( ".js-LabelEditorLauncher" )
123
+ . click ( )
124
+ . end ( )
125
+ . findByCssSelector ( ".js-label-search" )
126
+ . type ( "tacos" )
127
+ . end ( )
128
+ . sleep ( 1000 )
129
+ . findAllByXpath (
130
+ '//label[contains (@class, "label-editor-list-item") and not(@style="display: none;")]'
131
+ )
132
+ . then ( function ( elements ) {
133
+ count = elements . length ;
134
+ assert . deepEqual (
135
+ 1 ,
136
+ count ,
137
+ "Entering label name in search box filters to matching label"
138
+ ) ;
139
+ } )
140
+ . end ( ) ;
112
141
}
113
142
}
114
143
} ) ;
You can’t perform that action at this time.
0 commit comments