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

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

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 });
}