fix(core): improve the UX for edit collection (#4827)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user