File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -991,7 +991,7 @@ describe('MdSelect', () => {
991
991
`Expected trigger to align with the selected option on the x-axis in LTR.` ) ;
992
992
} ) ;
993
993
994
- it ( 'should align the trigger and the selected option on the x-axis in rtl' , ( ) => {
994
+ it ( 'should align the trigger and the selected option on the x-axis in rtl' , async ( ( ) => {
995
995
dir . value = 'rtl' ;
996
996
997
997
trigger . click ( ) ;
@@ -1003,10 +1003,12 @@ describe('MdSelect', () => {
1003
1003
1004
1004
// Each option is 32px wider than the trigger, so it must be adjusted 16px
1005
1005
// to ensure the text overlaps correctly.
1006
- expect ( firstOptionRight . toFixed ( 2 ) )
1007
- . toEqual ( ( triggerRight + 16 ) . toFixed ( 2 ) ,
1008
- `Expected trigger to align with the selected option on the x-axis in RTL.` ) ;
1009
- } ) ;
1006
+ fixture . whenStable ( ) . then ( ( ) => {
1007
+ expect ( firstOptionRight . toFixed ( 2 ) )
1008
+ . toEqual ( ( triggerRight + 16 ) . toFixed ( 2 ) ,
1009
+ `Expected trigger to align with the selected option on the x-axis in RTL.` ) ;
1010
+ } ) ;
1011
+ } ) ) ;
1010
1012
} ) ;
1011
1013
1012
1014
} ) ;
You can’t perform that action at this time.
0 commit comments