src: Addressing comments

- addressed AI comments
- fix tab indexing
- added username to the title of Remove user modal
- ensured "Invalid password" is not in the errors object before a password is filled in
- removing a user with empty user, password and ssh key fields does not prompt "Remove user" modal
- check for duplicate username
- focus on new user tab
- remove redundant tabIndex
This commit is contained in:
regexowl 2025-04-04 15:20:35 +02:00 committed by Lucas Garfield
parent 8d74022ab1
commit 6b0af16471
5 changed files with 90 additions and 22 deletions

View file

@ -407,7 +407,7 @@ describe('User request generated correctly', () => {
await addUserGroupByUserIndex('users', 0);
await addUserGroupByUserIndex('widget', 0);
await closeNthTab(0);
await waitFor(() => expect(screen.getByText(/add a user to your image/i)));
await screen.findByText(/add a user to your image/i);
await goToReviewStep();
const receivedRequest = await interceptBlueprintRequest(CREATE_BLUEPRINT);