this commit adds ssh_key to users step
This commit is contained in:
parent
6a5871bf14
commit
4af4b56332
6 changed files with 62 additions and 1 deletions
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue