@@ -17,8 +17,20 @@ module('Integration | Component | users | user-overview', function (hooks) {
17
17
hasAccessToUsersActionsScope = true ;
18
18
}
19
19
20
+ class OidcIdentityProvidersStub extends Service {
21
+ get list () {
22
+ return [
23
+ {
24
+ code: ' SUNLIGHT_NAVIGATIONS' ,
25
+ organizationName: ' Sunlight Navigations' ,
26
+ },
27
+ ];
28
+ }
29
+ }
30
+
20
31
hooks .beforeEach (function () {
21
32
this .owner .register (' service:access-control' , AccessControlStub);
33
+ this .owner .register (' service:oidcIdentityProviders' , OidcIdentityProvidersStub);
22
34
});
23
35
24
36
module (' when the admin look at user details' , function () {
@@ -37,6 +49,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
37
49
hasBeenAnonymised: true ,
38
50
hasBeenAnonymisedBy: 123 ,
39
51
anonymisedByFullName: ' (anonymised) (anonymised)' ,
52
+ authenticationMethods: [],
40
53
});
41
54
42
55
// when
@@ -63,6 +76,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
63
76
hasBeenAnonymised: true ,
64
77
hasBeenAnonymisedBy: 456 ,
65
78
anonymisedByFullName: fullName,
79
+ authenticationMethods: [],
66
80
});
67
81
68
82
// when
@@ -88,6 +102,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
88
102
lastName: ' Harry' ,
89
103
email: ' john.harry@example.net' ,
90
104
username: ' john.harry0102' ,
105
+ authenticationMethods: [],
91
106
};
92
107
93
108
// when
@@ -108,6 +123,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
108
123
lang: ' fr' ,
109
124
locale: ' fr-FR' ,
110
125
createdAt: new Date (' 2021-12-10' ),
126
+ authenticationMethods: [],
111
127
});
112
128
113
129
// when
@@ -118,6 +134,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
118
134
assert .dom (screen .getByText (` Nom : ${ user .lastName } ` )).exists ();
119
135
assert .dom (screen .getByText (` Adresse e-mail : ${ user .email } ` )).exists ();
120
136
assert .dom (screen .getByText (` Identifiant : ${ user .username } ` )).exists ();
137
+ assert .dom (screen .getByText (" SSO : Non" )).exists ()
121
138
assert .dom (screen .getByText (' Langue : fr' )).exists ();
122
139
assert .dom (screen .getByText (' Locale : fr-FR' )).exists ();
123
140
assert .dom (screen .getByText (' Date de création : 10/12/2021' )).exists ();
@@ -140,6 +157,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
140
157
username: ' kingofthenorth' ,
141
158
lang: expected .lang ,
142
159
locale: expected .locale ,
160
+ authenticationMethods: [],
143
161
});
144
162
145
163
// when
@@ -169,6 +187,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
169
187
lang: ' fr' ,
170
188
locale: ' fr-FR' ,
171
189
createdAt: new Date (' 2021-12-10' ),
190
+ authenticationMethods: [],
172
191
});
173
192
174
193
// when
@@ -195,6 +214,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
195
214
lang: ' fr' ,
196
215
locale: ' fr-FR' ,
197
216
createdAt: new Date (' 2021-12-10' ),
217
+ authenticationMethods: [],
198
218
});
199
219
200
220
// when
@@ -221,6 +241,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
221
241
lang: ' fr' ,
222
242
locale: ' fr-FR' ,
223
243
createdAt: new Date (' 2021-12-10' ),
244
+ authenticationMethods: [],
224
245
});
225
246
226
247
// when
@@ -247,6 +268,7 @@ module('Integration | Component | users | user-overview', function (hooks) {
247
268
lang: ' fr' ,
248
269
locale: ' fr-FR' ,
249
270
createdAt: new Date (' 2021-12-10' ),
271
+ authenticationMethods: [],
250
272
});
251
273
252
274
// when
0 commit comments