diff --git a/changes/1261-admin-create-user-no-invite b/changes/1261-admin-create-user-no-invite new file mode 100644 index 0000000000..ebee18ee0e --- /dev/null +++ b/changes/1261-admin-create-user-no-invite @@ -0,0 +1,8 @@ +- Add `USERS_ADMIN` endpoint to `fleet/endpoints` +- Add `createUserWithoutInvitation` action to `redux/nodes/entities/users` +- Revise `UserManagementPage` +- Revise `UserForm` +- Update existing Cypress test +- Remove `renderSmtpWarning` from `UserManagementPage` + +Implements #369 \ No newline at end of file diff --git a/cypress/integration/all/app/activateuser.spec.ts b/cypress/integration/all/app/activateuser.spec.ts index 0a2ca9aab8..d3f7e811e8 100644 --- a/cypress/integration/all/app/activateuser.spec.ts +++ b/cypress/integration/all/app/activateuser.spec.ts @@ -16,6 +16,10 @@ describe("User invite and activation", () => { cy.findByLabelText(/email/i).click().type("ash@example.com"); + cy.get(".create-user-form__new-user-radios").within(() => { + cy.findByRole("radio", { name: "Invite user" }).parent().click(); + }); + cy.findByRole("button", { name: /^create$/i }).click(); // Ensure the email has been delivered diff --git a/frontend/components/TableContainer/DataTable/DropdownCell/_styles.scss b/frontend/components/TableContainer/DataTable/DropdownCell/_styles.scss index 8574d7d392..8d1ac9e319 100644 --- a/frontend/components/TableContainer/DataTable/DropdownCell/_styles.scss +++ b/frontend/components/TableContainer/DataTable/DropdownCell/_styles.scss @@ -30,7 +30,7 @@ z-index: 6; overflow: hidden; border: 0; - width: 150px; + width: 188px; right: 28px; left: unset; top: unset; diff --git a/frontend/components/forms/fields/Radio/Radio.tsx b/frontend/components/forms/fields/Radio/Radio.tsx index be9d24be49..3410718406 100644 --- a/frontend/components/forms/fields/Radio/Radio.tsx +++ b/frontend/components/forms/fields/Radio/Radio.tsx @@ -27,8 +27,12 @@ const Radio = (props: IRadioProps): JSX.Element => { } = props; const wrapperClasses = classnames(baseClass, className); + const radioControlClass = classnames({ + [`disabled`]: disabled, + }); + return ( -