File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change
D46F
@@ -267,9 +267,8 @@ export const createTemplate = async (
267
267
) ;
268
268
}
269
269
270
- // picker is disabled if only one org is available
270
+ // The organization picker will be disabled if there is only one option.
271
271
const pickerIsDisabled = await orgPicker . isDisabled ( ) ;
272
-
273
272
if ( ! pickerIsDisabled ) {
274
273
await orgPicker . click ( ) ;
275
274
await page . getByText ( orgName , { exact : true } ) . click ( ) ;
@@ -1094,8 +1093,12 @@ export async function createUser(
1094
1093
const orgPicker = page . getByLabel ( "Organization *" ) ;
1095
1094
const organizationsEnabled = await orgPicker . isVisible ( ) ;
1096
1095
if ( organizationsEnabled ) {
1097
- await orgPicker . click ( ) ;
1098
- await page . getByText ( orgName , { exact : true } ) . click ( ) ;
1096
+ // The organization picker will be disabled if there is only one option.
1097
+ const pickerIsDisabled = await orgPicker . isDisabled ( ) ;
1098
+ if ( ! pickerIsDisabled ) {
1099
+ await orgPicker . click ( ) ;
1100
+ await page . getByText ( orgName , { exact : true } ) . click ( ) ;
1101
+ }
1099
1102
}
1100
1103
1101
1104
await page . getByLabel ( "Login Type" ) . click ( ) ;
You can’t perform that action at this time.
0 commit comments