From 9fbcae15a4b0ef94d7be09b283658f7c2d3c0f2b Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 3 Apr 2023 15:10:24 +0530 Subject: [PATCH] test: attachment cell scroll into view Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts b/tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts index 9609ec193e..bb0b8ccb1c 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts @@ -22,6 +22,7 @@ export class AttachmentCellPageObject extends BasePage { // e.g. ['path/to/file1', 'path/to/file2'] // async addFile({ index, columnHeader, filePath }: { index?: number; columnHeader: string; filePath: string[] }) { + await this.get({ index, columnHeader }).scrollIntoViewIfNeeded(); const attachFileAction = this.get({ index, columnHeader }) .locator('[data-testid="attachment-cell-file-picker-button"]') .click();