@@ -14,7 +14,7 @@ import {
1414describe ( 'SubRow' , ( ) => {
1515 const defaultProps = {
1616 ctaGleanId : 'glean-test' ,
17- ctaMessage : 'Get new codes' ,
17+ ctaMessage : 'Create new codes' ,
1818 icon : < div > Icon</ div > ,
1919 idPrefix : 'test' ,
2020 localizedDescription : 'More info message' ,
@@ -27,21 +27,21 @@ describe('SubRow', () => {
2727 renderWithLocalizationProvider ( < SubRow { ...defaultProps } isEnabled /> ) ;
2828 expect ( screen . getByText ( 'Backup authentication codes' ) ) . toBeInTheDocument ( ) ;
2929 expect ( screen . getByText ( 'Message' ) ) . toBeInTheDocument ( ) ;
30- expect ( screen . getByText ( 'Get new codes' ) ) . toBeInTheDocument ( ) ;
30+ expect ( screen . getByText ( 'Create new codes' ) ) . toBeInTheDocument ( ) ;
3131 expect ( screen . getByText ( 'More info message' ) ) . toBeInTheDocument ( ) ;
3232 } ) ;
3333
3434 it ( 'renders correctly when unavailable' , ( ) => {
3535 render ( < SubRow { ...defaultProps } isEnabled = { false } /> ) ;
3636 expect ( screen . getByText ( 'Backup authentication codes' ) ) . toBeInTheDocument ( ) ;
3737 expect ( screen . getByText ( 'Message' ) ) . toBeInTheDocument ( ) ;
38- const cta = screen . getByRole ( 'button' , { name : 'Get new codes' } ) ;
38+ const cta = screen . getByRole ( 'button' , { name : 'Create new codes' } ) ;
3939 expect ( cta ) . toBeInTheDocument ( ) ;
4040 } ) ;
4141
4242 it ( 'calls onCtaClick when CTA button is clicked' , ( ) => {
4343 renderWithLocalizationProvider ( < SubRow { ...defaultProps } isEnabled /> ) ;
44- fireEvent . click ( screen . getByText ( 'Get new codes' ) ) ;
44+ fireEvent . click ( screen . getByText ( 'Create new codes' ) ) ;
4545 expect ( defaultProps . onCtaClick ) . toHaveBeenCalled ( ) ;
4646 } ) ;
4747} ) ;
@@ -59,7 +59,7 @@ describe('BackupCodesSubRow', () => {
5959 screen . getByText ( 'Backup authentication codes' )
6060 ) . toBeInTheDocument ( ) ;
6161 expect ( screen . getByText ( '5 codes remaining' ) ) . toBeInTheDocument ( ) ;
62- expect ( screen . getByText ( 'Get new codes' ) ) . toBeInTheDocument ( ) ;
62+ expect ( screen . getByText ( 'Create new codes' ) ) . toBeInTheDocument ( ) ;
6363 } ) ;
6464
6565 it ( 'renders correctly when 1 code is available' , ( ) => {
@@ -78,7 +78,7 @@ describe('BackupCodesSubRow', () => {
7878 screen . getByText ( 'Backup authentication codes' )
7979 ) . toBeInTheDocument ( ) ;
8080 expect ( screen . getByText ( '5 codes remaining' ) ) . toBeInTheDocument ( ) ;
81- expect ( screen . getByText ( 'Get new codes' ) ) . toBeInTheDocument ( ) ;
81+ expect ( screen . getByText ( 'Create new codes' ) ) . toBeInTheDocument ( ) ;
8282 expect (
8383 screen . getByText (
8484 'This is the safest recovery method if you canʼt use your mobile device or authenticator app.'
@@ -88,7 +88,7 @@ describe('BackupCodesSubRow', () => {
8888
8989 it ( 'calls onCtaClick when CTA button is clicked' , ( ) => {
9090 renderWithLocalizationProvider ( < BackupCodesSubRow { ...defaultProps } /> ) ;
91- fireEvent . click ( screen . getByText ( 'Get new codes' ) ) ;
91+ fireEvent . click ( screen . getByText ( 'Create new codes' ) ) ;
9292 expect ( defaultProps . onCtaClick ) . toHaveBeenCalled ( ) ;
9393 } ) ;
9494 } ) ;
@@ -126,9 +126,7 @@ describe('BackupPhoneSubRow', () => {
126126 < BackupPhoneSubRow onCtaClick = { jest . fn ( ) } />
127127 ) ;
128128 expect ( screen . getByText ( 'Recovery phone' ) ) . toBeInTheDocument ( ) ;
129- expect (
130- screen . getByText ( 'No recovery phone number available' )
131- ) . toBeInTheDocument ( ) ;
129+ expect ( screen . getByText ( 'No phone number added' ) ) . toBeInTheDocument ( ) ;
132130 expect ( screen . getByRole ( 'button' , { name : 'Add' } ) ) . toBeInTheDocument ( ) ;
133131 expect (
134132 screen . getByText (
0 commit comments