fix(test): pw test fail issue

This commit is contained in:
Ramesh Mane
2024-06-24 08:28:54 +00:00
parent 94ed67b80f
commit c6ad09b89c
2 changed files with 7 additions and 0 deletions

View File

@@ -144,6 +144,11 @@ export class CellPageObject extends BasePage {
await this.rootPage.locator(`td[data-testid="cell-${columnHeader}-${index}"]`).waitFor({ state: 'visible' });
}
await this.get({
index,
columnHeader,
}).waitFor({ state: 'visible' });
await this.get({
index,
columnHeader,

View File

@@ -31,6 +31,8 @@ async function dragDrop({
// drag and drop
await src.dragTo(dst);
await params.dashboard.rootPage.waitForTimeout(250);
}
async function beforeEachInit({ page, tableType }: { page: any; tableType: string }) {
const context = await setup({ page, isEmptyProject: true });