test: use different class name for cell & expand modal picker

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2023-01-25 18:33:13 +05:30
parent eb691965f2
commit eb0eb410c0
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export class AttachmentCellPageObject extends BasePage {
async expandModalAddFile({ filePath }: { filePath: string[] }) {
const attachFileAction = this.rootPage
.locator('.ant-modal.nc-attachment-modal.active')
.locator('[data-testid="attachment-cell-file-picker-button"]')
.locator('[data-testid="attachment-expand-file-picker-button"]')
.click();
return await this.attachFile({ filePickUIAction: attachFileAction, filePath });
}