mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 16:38:17 +00:00
This reverts commit 7b495072e094d71c9248225723ff5a3abd0479af.
This commit is contained in:
parent
50f05f32dc
commit
c1e895aca8
@ -40,7 +40,6 @@ import {
|
||||
import { CustomPropertyTypeByName } from '../../utils/customProperty';
|
||||
import {
|
||||
addMultiOwner,
|
||||
dropdownVisibility,
|
||||
removeOwner,
|
||||
removeOwnersFromList,
|
||||
} from '../../utils/entity';
|
||||
@ -220,14 +219,6 @@ entities.forEach((EntityClass) => {
|
||||
);
|
||||
});
|
||||
|
||||
test("Tags and Glossary Term dropdown shouldn't be visible on tab change", async ({
|
||||
page,
|
||||
}) => {
|
||||
await dropdownVisibility(page, 'tags');
|
||||
await page.getByRole('tablist').getByRole('tab').first().click();
|
||||
await dropdownVisibility(page, 'glossary');
|
||||
});
|
||||
|
||||
// Run only if entity has children
|
||||
if (!isUndefined(entity.childrenTabId)) {
|
||||
test('Tag Add, Update and Remove for child entities', async ({
|
||||
|
@ -709,24 +709,6 @@ export const removeGlossaryTermFromChildren = async ({
|
||||
}
|
||||
};
|
||||
|
||||
export const dropdownVisibility = async (page: Page, tagType: string) => {
|
||||
await page
|
||||
.getByTestId('entity-right-panel')
|
||||
.getByTestId(`${tagType}-container`)
|
||||
.getByTestId('add-tag')
|
||||
.click();
|
||||
await page.waitForSelector(
|
||||
'.ant-select-dropdown [data-testid="saveAssociatedTag"]',
|
||||
{ state: 'visible' }
|
||||
);
|
||||
|
||||
await expect(page.getByTestId('saveAssociatedTag')).toBeVisible();
|
||||
|
||||
await page.getByTestId('activity_feed').click();
|
||||
|
||||
await expect(page.getByTestId('saveAssociatedTag')).not.toBeVisible();
|
||||
};
|
||||
|
||||
export const upVote = async (page: Page, endPoint: string) => {
|
||||
const patchRequest = page.waitForResponse(`/api/v1/${endPoint}/*/vote`);
|
||||
|
||||
|
@ -315,7 +315,6 @@ const AsyncSelectList: FC<AsyncSelectListProps & SelectProps> = ({
|
||||
style={{ width: '100%' }}
|
||||
tagRender={customTagRender}
|
||||
onChange={handleChange}
|
||||
onDropdownVisibleChange={(open) => !open && onCancel?.()}
|
||||
onInputKeyDown={(event) => {
|
||||
if (event.key === 'Backspace') {
|
||||
return event.stopPropagation();
|
||||
|
@ -328,7 +328,6 @@ const TreeAsyncSelectList: FC<Omit<AsyncSelectListProps, 'fetchOptions'>> = ({
|
||||
treeData={treeData}
|
||||
treeExpandedKeys={isEmpty(searchOptions) ? undefined : expandedRowKeys}
|
||||
onChange={handleChange}
|
||||
onDropdownVisibleChange={(open) => !open && onCancel?.()}
|
||||
onSearch={onSearch}
|
||||
onTreeExpand={setExpandedRowKeys}
|
||||
{...props}
|
||||
|
Loading…
x
Reference in New Issue
Block a user