@@ -7,7 +7,7 @@ import { AccountForm, AccountFormValues } from "./SettingsAccountForm"
7
7
// only that editable is set to true or false. This is passed from
8
8
// the call to /authorization done by authXService
9
9
describe ( "AccountForm" , ( ) => {
10
- describe ( "for owners " , ( ) => {
10
+ describe ( "when editable is set to true " , ( ) => {
11
11
it ( "allows updating username" , async ( ) => {
12
12
// Given
13
13
const mockInitialValues :AccountFormValues = {
@@ -33,34 +33,8 @@ describe("AccountForm", () => {
33
33
} )
34
34
} )
35
35
36
- describe ( "for user admins" , ( ) => {
37
- it ( "allows updating username" , async ( ) => {
38
- // Given
39
- const mockInitialValues :AccountFormValues = {
40
- username :MockUser2 . username ,
41
- editable :true ,
42
- }
43
-
44
- // When
45
- render (
46
- < AccountForm
47
- email = { MockUser2 . email }
48
- initialValues = { mockInitialValues }
49
- isLoading = { false }
50
- onSubmit = { ( ) => {
51
- return
52
- } }
53
- /> ,
54
- )
55
-
56
- // Then
57
- const el = await screen . findByLabelText ( "Username" )
58
- expect ( el ) . toBeEnabled ( )
59
- } )
60
- } )
61
-
62
- describe ( "for members" , ( ) => {
63
- it ( "allows updating username" , async ( ) => {
36
+ describe ( "when editable is set to false" , ( ) => {
37
+ it ( "does not allow updating username" , async ( ) => {
64
38
// Given
65
39
const mockInitialValues :AccountFormValues = {
66
40
username :MockUser2 . username ,