File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ describe("Single Picker - ", function () {
56
56
expect ( $container ) . toContainElement ( "span.pc-list" ) ;
57
57
expect ( $container ) . toContainElement ( "span.pc-element.pc-trigger" ) ;
58
58
expect ( $container . find ( ".picker > .pc-select > .pc-list > ul > li" ) ) . toHaveLength ( 5 ) ;
59
- expect ( $container . find ( ".pc-element" ) ) . toContainText ( "aaa" ) ;
59
+ expect ( $container . find ( ".pc-element" ) ) . toContainText ( $select . find ( 'option:eq(0)' ) . text ( ) ) ;
60
60
} ) ;
61
61
62
62
it ( "No options init" , function ( ) {
@@ -154,7 +154,7 @@ describe("Multi-selection Picker - ", function () {
154
154
expect ( $container ) . toContainElement ( "span.pc-list" ) ;
155
155
expect ( $container ) . toContainElement ( "span.pc-element.pc-trigger" ) ;
156
156
expect ( $container . find ( ".picker > .pc-select > .pc-list > ul > li" ) ) . toHaveLength ( 5 ) ;
157
- expect ( $container . find ( ".pc-trigger" ) ) . toHaveText ( "Random" ) ;
157
+ expect ( $container . find ( ".pc-trigger" ) ) . toHaveText ( $select . find ( 'option:eq(0)' ) . text ( ) ) ;
158
158
} ) ;
159
159
160
160
it ( "Auto init" , function ( ) {
@@ -359,7 +359,7 @@ describe("Picker configuration - ", function () {
359
359
} ) ;
360
360
361
361
var $input = $container . find ( ".pc-list input[type='search']" ) ;
362
- expect ( $container . find ( ".pc-trigger" ) ) . toContainText ( "aaa" ) ;
362
+ expect ( $container . find ( ".pc-trigger" ) ) . toContainText ( $select . find ( 'option:eq(0)' ) . text ( ) ) ;
363
363
expect ( $input . attr ( "placeholder" ) ) . toBe ( "ccc" ) ;
364
364
365
365
$input . val ( "asd" ) ;
You can’t perform that action at this time.
0 commit comments