Browse Source

test: attachment cell scroll into view

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5392/head
Raju Udava 2 years ago
parent
commit
9fbcae15a4
  1. 1
      tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts

1
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'] // e.g. ['path/to/file1', 'path/to/file2']
// //
async addFile({ index, columnHeader, filePath }: { index?: number; columnHeader: string; filePath: string[] }) { async addFile({ index, columnHeader, filePath }: { index?: number; columnHeader: string; filePath: string[] }) {
await this.get({ index, columnHeader }).scrollIntoViewIfNeeded();
const attachFileAction = this.get({ index, columnHeader }) const attachFileAction = this.get({ index, columnHeader })
.locator('[data-testid="attachment-cell-file-picker-button"]') .locator('[data-testid="attachment-cell-file-picker-button"]')
.click(); .click();

Loading…
Cancel
Save