this commit adds ssh_key to users step

This commit is contained in:
regexowl 2025-01-02 09:55:22 +01:00 committed by Klara Simickova
parent 6a5871bf14
commit 4af4b56332
6 changed files with 62 additions and 1 deletions

View file

@ -63,6 +63,11 @@ const addValidUser = async () => {
const nextButton = await getNextButton();
await waitFor(() => user.type(enterUserName, 'best'));
await waitFor(() => expect(enterUserName).toHaveValue('best'));
const enterSshKey = await screen.findByRole('textbox', {
name: /public SSH key/i,
});
await waitFor(() => user.type(enterSshKey, 'ssh-rsa d'));
await waitFor(() => expect(enterSshKey).toHaveValue('ssh-rsa d'));
await waitFor(() => expect(nextButton).toBeEnabled());
};
@ -129,6 +134,7 @@ describe('Step Users', () => {
users: [
{
name: 'best',
ssh_key: 'ssh-rsa d',
},
],
},