@@ -24,7 +24,7 @@ describe("Profile section", () => {
24
24
isCurrentUser = { isCurrentUser }
25
25
handleEditProfileOpen = { handleEditProfileOpen }
26
26
handleChangePasswordOpen = { handleChangePasswordOpen }
27
- /> ,
27
+ />
28
28
) ;
29
29
expect ( screen . getByText ( `${ firstName } ${ lastName } ` ) ) . toBeInTheDocument ( ) ;
30
30
} ) ;
@@ -46,7 +46,7 @@ describe("Profile section", () => {
46
46
isCurrentUser = { isCurrentUser }
47
47
handleEditProfileOpen = { handleEditProfileOpen }
48
48
handleChangePasswordOpen = { handleChangePasswordOpen }
49
- /> ,
49
+ />
50
50
) ;
51
51
expect ( screen . getByText ( `@${ username } ` ) ) . toBeInTheDocument ( ) ;
52
52
} ) ;
@@ -70,15 +70,15 @@ describe("Profiles that don't belong to the current authenticated user", () => {
70
70
isCurrentUser = { isCurrentUser }
71
71
handleEditProfileOpen = { handleEditProfileOpen }
72
72
handleChangePasswordOpen = { handleChangePasswordOpen }
73
- /> ,
73
+ />
74
74
) ;
75
75
const editProfileButton = screen . queryByRole ( "button" , {
76
76
name : "Edit profile" ,
77
77
} ) ;
78
78
expect ( editProfileButton ) . not . toBeInTheDocument ( ) ;
79
79
} ) ;
80
80
81
- it ( "Edit password button is absent" , ( ) => {
81
+ it ( "Change password button is absent" , ( ) => {
82
82
const firstName = faker . person . firstName ( ) ;
83
83
const lastName = faker . person . lastName ( ) ;
84
84
const username = faker . internet . userName ( ) ;
@@ -95,10 +95,10 @@ describe("Profiles that don't belong to the current authenticated user", () => {
95
95
isCurrentUser = { isCurrentUser }
96
96
handleEditProfileOpen = { handleEditProfileOpen }
97
97
handleChangePasswordOpen = { handleChangePasswordOpen }
98
- /> ,
98
+ />
99
99
) ;
100
100
const editProfileButton = screen . queryByRole ( "button" , {
101
- name : "Edit password" ,
101
+ name : "Change password" ,
102
102
} ) ;
103
103
expect ( editProfileButton ) . not . toBeInTheDocument ( ) ;
104
104
} ) ;
@@ -122,15 +122,15 @@ describe("Profiles that belong to the current authenticated user", () => {
122
122
isCurrentUser = { isCurrentUser }
123
123
handleEditProfileOpen = { handleEditProfileOpen }
124
124
handleChangePasswordOpen = { handleChangePasswordOpen }
125
- /> ,
125
+ />
126
126
) ;
127
127
const editProfileButton = screen . queryByRole ( "button" , {
128
128
name : "Edit profile" ,
129
129
} ) ;
130
130
expect ( editProfileButton ) . toBeInTheDocument ( ) ;
131
131
} ) ;
132
132
133
- it ( "Edit password button is present" , ( ) => {
133
+ it ( "Change password button is present" , ( ) => {
134
134
const firstName = faker . person . firstName ( ) ;
135
135
const lastName = faker . person . lastName ( ) ;
136
136
const username = faker . internet . userName ( ) ;
@@ -147,7 +147,7 @@ describe("Profiles that belong to the current authenticated user", () => {
147
147
isCurrentUser = { isCurrentUser }
148
148
handleEditProfileOpen = { handleEditProfileOpen }
149
149
handleChangePasswordOpen = { handleChangePasswordOpen }
150
- /> ,
150
+ />
151
151
) ;
152
152
const editProfileButton = screen . getByRole ( "button" , {
153
153
name : "Change password" ,
0 commit comments