Move groupnode test teardown logic to afterEach (#965)

This commit is contained in:
bymyself
2024-09-24 19:53:52 -07:00
committed by GitHub
parent da651eee6f
commit 941f71faea
2 changed files with 16 additions and 6 deletions

View File

@@ -139,6 +139,15 @@ class NodeLibrarySidebarTab {
await this.nodeLibraryTree.waitFor({ state: 'visible' })
}
async close() {
if (!this.tabButton.isVisible()) {
return
}
await this.tabButton.click()
await this.nodeLibraryTree.waitFor({ state: 'hidden' })
}
folderSelector(folderName: string) {
return `.p-tree-node-content:has(> .tree-explorer-node-label:has(.tree-folder .node-label:has-text("${folderName}")))`
}