fix(core): improve the UX for edit collection (#4827)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
3720andPeng Xiao authored and GitHub committed 2023-11-07 10:18:56 +00:00
1 parent 7305530d97
commit 08e7fa3486
7 files changed
+121 -93

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ export const createFirstFilter = async (page: Page, name: string) => {
await page
.locator('[data-testid="variable-select-item"]', { hasText: name })
.click();
await page.keyboard.press('Escape');
};
export const checkFilterName = async (page: Page, name: string) => {
@@ -212,4 +213,5 @@ export const changeFilter = async (page: Page, to: string) => {
export async function selectTag(page: Page, name: string | RegExp) {
await page.getByTestId('filter-arg').click();
await page.getByTestId(`multi-select-${name}`).click();
await page.keyboard.press('Escape', { delay: 100 });
}