Skip to content

Commit

Permalink
fix(Navigation): pool tree select popup [YTFRONT-4380]
Browse files Browse the repository at this point in the history
  • Loading branch information
SimbiozizV authored and ma-efremoff committed Oct 2, 2024
1 parent cf79a79 commit f52eb90
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {Select} from '@gravity-ui/uikit';
import {DialogControlProps} from '../../../../components/Dialog/Dialog.types';
import {getAllPoolTreeNames} from '../../../../store/selectors/global';

type Props = DialogControlProps<string> & {disabled?: boolean};
type Props = DialogControlProps<string> & {
disabled?: boolean;
};

export function PoolTreeSuggestControl(props: Props) {
const {value, onChange, disabled, placeholder} = props;
Expand All @@ -27,7 +29,6 @@ export function PoolTreeSuggestControl(props: Props) {
onUpdate={(values) => onChange(values[0])}
placeholder={placeholder}
width="max"
disablePortal
filterable={items?.length > 5}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ test('Navigation: table - Content', async ({page}) => {

await expect(page).toHaveScreenshot();
});

await page.click('.elements-modal__close');

await test.step('Merge dialog', async () => {
await page.click('button.edit-table-actions__button');
await page.waitForSelector('.g-popup__content');
await page.click('.g-menu__list-item :text("Merge")');
await page.waitForSelector('.g-dialog');
await page.click('.df-dialog__field-group_type_pool-tree button.g-select-control__button');

await expect(page).toHaveScreenshot();
});
});

test('Navigation: table - Schema', async ({page}) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f52eb90

Please # to comment.