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();