File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -991,7 +991,7 @@ describe('MdSelect', () => {
991991 `Expected trigger to align with the selected option on the x-axis in LTR.` ) ;
992992 } ) ;
993993
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 ( ( ) => {
995995 dir . value = 'rtl' ;
996996
997997 trigger . click ( ) ;
@@ -1003,10 +1003,12 @@ describe('MdSelect', () => {
10031003
10041004 // Each option is 32px wider than the trigger, so it must be adjusted 16px
10051005 // 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+ } ) ) ;
10101012 } ) ;
10111013
10121014 } ) ;
You can’t perform that action at this time.
0 commit comments