mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 10:26:09 +00:00
UI : Remove bot option from create user page (#7476)
This commit is contained in:
parent
8502bf8e49
commit
30e3012e66
@ -309,18 +309,6 @@ const CreateUser = ({
|
||||
<div className="switch" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="tw-flex tw-pt-1">
|
||||
<label>Bot</label>
|
||||
<div
|
||||
className={classNames('toggle-switch', { open: isBot })}
|
||||
data-testid="bot"
|
||||
onClick={() => {
|
||||
setIsBot((prev) => !prev);
|
||||
setIsAdmin(false);
|
||||
}}>
|
||||
<div className="switch" />
|
||||
</div>
|
||||
</div>
|
||||
</Field>
|
||||
</>
|
||||
)}
|
||||
|
@ -53,7 +53,6 @@ describe('Test CreateUser component', () => {
|
||||
const PageLayout = await findByTestId(container, 'PageLayout');
|
||||
const email = await findByTestId(container, 'email');
|
||||
const admin = await findByTestId(container, 'admin');
|
||||
const bot = await findByTestId(container, 'bot');
|
||||
const cancelButton = await findByTestId(container, 'cancel-user');
|
||||
const saveButton = await findByTestId(container, 'save-user');
|
||||
const description = await findByText(
|
||||
@ -68,7 +67,6 @@ describe('Test CreateUser component', () => {
|
||||
|
||||
expect(PageLayout).toBeInTheDocument();
|
||||
expect(email).toBeInTheDocument();
|
||||
expect(bot).toBeInTheDocument();
|
||||
expect(admin).toBeInTheDocument();
|
||||
expect(description).toBeInTheDocument();
|
||||
expect(dropdown).toBeInTheDocument();
|
||||
|
Loading…
x
Reference in New Issue
Block a user