@@ -243,6 +243,7 @@ test.describe.serial("Test RBAC", () => {
243
243
const lines = fileContent . trim ( ) . split ( "\n" ) ;
244
244
245
245
const header = "userEntityRef,displayName,email,lastAuthTime" ;
246
+ // eslint-disable-next-line playwright/no-conditional-in-test
246
247
if ( lines [ 0 ] !== header ) {
247
248
throw new Error ( "Header does not match" ) ;
248
249
}
@@ -251,6 +252,7 @@ test.describe.serial("Test RBAC", () => {
251
252
const allUsersValid = lines
252
253
. slice ( 1 )
253
254
. every ( ( line ) => line . startsWith ( "user:default" ) ) ;
255
+ // eslint-disable-next-line playwright/no-conditional-in-test
254
256
if ( ! allUsersValid ) {
255
257
throw new Error ( "Not all users info are valid" ) ;
256
258
}
@@ -394,7 +396,9 @@ test.describe.serial("Test RBAC", () => {
394
396
nextButton2 = page . locator ( '[data-testid="nextButton-2"]' ) ;
395
397
matchNextButton2 = await nextButton2 . all ( ) ;
396
398
attempts ++ ;
399
+ // eslint-disable-next-line playwright/no-conditional-in-test
397
400
} while ( matchNextButton2 . length > 1 && attempts < 5 ) ;
401
+ // eslint-disable-next-line playwright/no-force-option
398
402
await nextButton2 . click ( { force : true } ) ;
399
403
await page . waitForTimeout ( 1_000 ) ;
400
404
await uiHelper . clickButton ( "Save" ) ;
@@ -489,12 +493,14 @@ test.describe.serial("Test RBAC", () => {
489
493
490
494
const policiesResponse = await rbacApi . getPolicies ( ) ;
491
495
496
+ // eslint-disable-next-line playwright/no-conditional-in-test
492
497
if ( ! rolesResponse . ok ( ) ) {
493
498
throw Error (
494
499
`RBAC rolesResponse API call failed with status code ${ rolesResponse . status ( ) } ` ,
495
500
) ;
496
501
}
497
502
503
+ // eslint-disable-next-line playwright/no-conditional-in-test
498
504
if ( ! policiesResponse . ok ( ) ) {
499
505
throw Error (
500
506
`RBAC policiesResponse API call failed with status code ${ policiesResponse . status ( ) } ` ,
0 commit comments