mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +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 className="switch" />
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</Field>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -53,7 +53,6 @@ describe('Test CreateUser component', () => {
|
|||||||
const PageLayout = await findByTestId(container, 'PageLayout');
|
const PageLayout = await findByTestId(container, 'PageLayout');
|
||||||
const email = await findByTestId(container, 'email');
|
const email = await findByTestId(container, 'email');
|
||||||
const admin = await findByTestId(container, 'admin');
|
const admin = await findByTestId(container, 'admin');
|
||||||
const bot = await findByTestId(container, 'bot');
|
|
||||||
const cancelButton = await findByTestId(container, 'cancel-user');
|
const cancelButton = await findByTestId(container, 'cancel-user');
|
||||||
const saveButton = await findByTestId(container, 'save-user');
|
const saveButton = await findByTestId(container, 'save-user');
|
||||||
const description = await findByText(
|
const description = await findByText(
|
||||||
@ -68,7 +67,6 @@ describe('Test CreateUser component', () => {
|
|||||||
|
|
||||||
expect(PageLayout).toBeInTheDocument();
|
expect(PageLayout).toBeInTheDocument();
|
||||||
expect(email).toBeInTheDocument();
|
expect(email).toBeInTheDocument();
|
||||||
expect(bot).toBeInTheDocument();
|
|
||||||
expect(admin).toBeInTheDocument();
|
expect(admin).toBeInTheDocument();
|
||||||
expect(description).toBeInTheDocument();
|
expect(description).toBeInTheDocument();
|
||||||
expect(dropdown).toBeInTheDocument();
|
expect(dropdown).toBeInTheDocument();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user