From e79c4a78fda18c5f50600e4f55dc0806c1337050 Mon Sep 17 00:00:00 2001 From: Tung Du Date: Wed, 6 Apr 2022 12:07:05 +0700 Subject: [PATCH] fix: createTerm issue with custom hierarchial taxonomy --- src/commands/create-term.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/create-term.ts b/src/commands/create-term.ts index ef72613..bb29e9c 100644 --- a/src/commands/create-term.ts +++ b/src/commands/create-term.ts @@ -73,7 +73,7 @@ export const createTerm = ( } cy.get('body').then($body => { - if ($body.find('#parent').length !== 0) { + if ($body.find('#parent:visible').length !== 0) { cy.get('#parent').select(parent.toString()); } });