fix(test): pw test fail issue

This commit is contained in:
Ramesh Mane
2025-04-15 05:53:31 +00:00
parent 0ad5ebf9e3
commit 8ffa7dbafb

View File

@@ -110,7 +110,7 @@ export class LeftSidebarPage extends BasePage {
await this.rootPage.waitForTimeout(2000);
for (let i = 0; i < (await nodes.count()); i++) {
const text = await getTextExcludeIconText(nodes.nth(i));
const text = await getTextExcludeIconText(nodes.nth(i).getByTestId('nc-workspace-list-title'));
if (text.toLowerCase() === param.title.toLowerCase()) {
await nodes.nth(i).click({ force: true });
break;