diff --git a/tests/playwright/pages/Dashboard/Import/ImportTemplate.ts b/tests/playwright/pages/Dashboard/Import/ImportTemplate.ts index 0a71a30048..75f16cbfc7 100644 --- a/tests/playwright/pages/Dashboard/Import/ImportTemplate.ts +++ b/tests/playwright/pages/Dashboard/Import/ImportTemplate.ts @@ -23,7 +23,11 @@ export class ImportTemplatePage extends BasePage { const rowCount = await tr.count(); const tableList: string[] = []; for (let i = 0; i < rowCount; i++) { - const tableName = await getTextExcludeIconText(tr.nth(i)); + const tableName = await this.get() + .locator(`.ant-collapse-header`) + .nth(i) + .locator('input[type="text"]') + .inputValue(); tableList.push(tableName); } return tableList;