File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,17 @@ test.describe('Organization Management', () => {
170170 // Click "Add member" button
171171 await orgManagement . getByRole ( 'button' , { name : / a d d m e m b e r / i } ) . click ( )
172172
173- // Fill in the form
173+ // Wait for the add-member form to appear
174174 const usernameInput = orgManagement . locator ( 'input[name="new-member-username"]' )
175+ await expect ( usernameInput ) . toBeVisible ( { timeout : 5000 } )
176+
177+ // Fill in the form
175178 await usernameInput . fill ( 'newuser' )
176179
177180 // Select role
178- await orgManagement . locator ( 'select[name="new-member-role"]' ) . selectOption ( 'admin' )
181+ const roleSelect = orgManagement . locator ( 'select[name="new-member-role"]' )
182+ await expect ( roleSelect ) . toBeVisible ( { timeout : 5000 } )
183+ await roleSelect . selectOption ( 'admin' )
179184
180185 // Submit
181186 await orgManagement . getByRole ( 'button' , { name : / ^ a d d $ / i } ) . click ( )
You can’t perform that action at this time.
0 commit comments