@@ -717,6 +717,7 @@ describe('ActionGroup', function () {
717
717
expect ( buttons [ 0 ] ) . toHaveTextContent ( 'One' ) ;
718
718
expect ( buttons [ 1 ] ) . toHaveAttribute ( 'aria-label' , '…' ) ;
719
719
expect ( buttons [ 1 ] ) . toHaveAttribute ( 'aria-haspopup' , 'true' ) ;
720
+ expect ( buttons [ 1 ] ) . not . toHaveAttribute ( 'aria-checked' ) ;
720
721
721
722
triggerPress ( buttons [ 1 ] ) ;
722
723
@@ -784,6 +785,7 @@ describe('ActionGroup', function () {
784
785
let button = tree . getByRole ( 'button' ) ;
785
786
expect ( button ) . toHaveAttribute ( 'aria-label' , 'Test' ) ;
786
787
expect ( button ) . toHaveAttribute ( 'aria-haspopup' , 'true' ) ;
788
+ expect ( button ) . not . toHaveAttribute ( 'aria-checked' ) ;
787
789
788
790
triggerPress ( button ) ;
789
791
@@ -817,6 +819,7 @@ describe('ActionGroup', function () {
817
819
let button = tree . getByRole ( 'button' ) ;
818
820
expect ( button ) . toHaveAttribute ( 'aria-label' , '…' ) ;
819
821
expect ( button ) . toHaveAttribute ( 'aria-haspopup' , 'true' ) ;
822
+ expect ( button ) . not . toHaveAttribute ( 'aria-checked' ) ;
820
823
821
824
triggerPress ( button ) ;
822
825
@@ -859,6 +862,7 @@ describe('ActionGroup', function () {
859
862
let button = tree . getByRole ( 'button' ) ;
860
863
expect ( button ) . toHaveAttribute ( 'aria-label' , '…' ) ;
861
864
expect ( button ) . toHaveAttribute ( 'aria-haspopup' , 'true' ) ;
865
+ expect ( button ) . not . toHaveAttribute ( 'aria-checked' ) ;
862
866
863
867
triggerPress ( button ) ;
864
868
@@ -903,6 +907,7 @@ describe('ActionGroup', function () {
903
907
expect ( buttons [ 0 ] ) . toBeDisabled ( ) ;
904
908
expect ( buttons [ 1 ] ) . toHaveAttribute ( 'aria-label' , '…' ) ;
905
909
expect ( buttons [ 1 ] ) . toHaveAttribute ( 'aria-haspopup' , 'true' ) ;
910
+ expect ( buttons [ 1 ] ) . not . toHaveAttribute ( 'aria-checked' ) ;
906
911
expect ( buttons [ 1 ] ) . toBeDisabled ( ) ;
907
912
} ) ;
908
913
@@ -925,6 +930,7 @@ describe('ActionGroup', function () {
925
930
expect ( within ( actionGroup ) . getByRole ( 'button' , { name : 'One' } ) ) . toBeVisible ( ) ;
926
931
927
932
const moreButton = within ( actionGroup ) . getByRole ( 'button' , { name : '…' } ) ;
933
+ expect ( moreButton ) . not . toHaveAttribute ( 'aria-checked' ) ;
928
934
expect ( moreButton ) . toBeVisible ( ) ;
929
935
930
936
triggerPress ( moreButton ) ;
0 commit comments