@@ -16,10 +16,6 @@ async function setupCreateUserAccountPage(page: Page) {
1616 "createUserAccount-institution-select" ,
1717 ) ;
1818
19- const timezoneSelectLocator = page . getByTestId (
20- "createUserAccount-timezone-select" ,
21- ) ;
22-
2319 const roleSelectLocator = page . getByTestId ( "createUserAccount-role-select" ) ;
2420
2521 // fields
@@ -53,7 +49,6 @@ async function setupCreateUserAccountPage(page: Page) {
5349 nameLocator,
5450 surnameLocator,
5551 emailLocator,
56- timezoneSelectLocator,
5752 passwordLocator,
5853 confirmPasswordLocator,
5954 roleSelectLocator,
@@ -84,7 +79,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
8479 nameLocator,
8580 surnameLocator,
8681 emailLocator,
87- timezoneSelectLocator,
8882 passwordLocator,
8983 confirmPasswordLocator,
9084 roleSelectLocator,
@@ -102,7 +96,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
10296
10397 const institutionToSelect = "SEB Server" ;
10498 const roleToSelect = "Server Administrator" ;
105- const timeZoneToSelect = "Europe/Zurich" ;
10699
107100 // fill selects
108101 await selectVuetifyOptionByName (
@@ -111,11 +104,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
111104 institutionToSelect ,
112105 ) ;
113106 await selectVuetifyOptionByName ( page , roleSelectLocator , roleToSelect ) ;
114- await selectVuetifyOptionByName (
115- page ,
116- timezoneSelectLocator ,
117- timeZoneToSelect ,
118- ) ;
119107
120108 //fill fields
121109 await usernameLocator . fill ( username ) ;
@@ -165,13 +153,12 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
165153 username : username ,
166154 newPassword : password ,
167155 confirmNewPassword : password ,
168- timezone : timeZoneToSelect ,
169156 language : "en" ,
170157 email : email ,
171158 userRoles : [ "SEB_SERVER_ADMIN" ] ,
172159 } ;
173160
174- expect ( actualPayload ) . toEqual ( expectedPayload ) ;
161+ expect ( actualPayload ) . toMatchObject ( expectedPayload ) ;
175162
176163 await expectSuccessfulCreateRedirect ( page ) ;
177164
@@ -268,7 +255,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
268255 nameLocator,
269256 surnameLocator,
270257 emailLocator,
271- timezoneSelectLocator,
272258 passwordLocator,
273259 confirmPasswordLocator,
274260 roleSelectLocator,
@@ -285,7 +271,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
285271
286272 const institutionToSelect = "SEB Server" ;
287273 const roleToSelect = "Server Administrator" ;
288- const timeZoneToSelect = "Europe/Zurich" ;
289274
290275 // fill selects
291276 await selectVuetifyOptionByName (
@@ -294,11 +279,6 @@ test.describe("1.1 User Accounts - CREATE Add", () => {
294279 institutionToSelect ,
295280 ) ;
296281 await selectVuetifyOptionByName ( page , roleSelectLocator , roleToSelect ) ;
297- await selectVuetifyOptionByName (
298- page ,
299- timezoneSelectLocator ,
300- timeZoneToSelect ,
301- ) ;
302282
303283 //fill fields
304284 await usernameLocator . fill ( username ) ;
0 commit comments