Browse Source

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

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/4931/head
Raju Udava 2 years ago
parent
commit
eb0eb410c0
  1. 2
      packages/nc-gui/components/cell/attachment/Modal.vue
  2. 2
      tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts

2
packages/nc-gui/components/cell/attachment/Modal.vue

@ -89,7 +89,7 @@ function onRemoveFileClick(title: any, i: number) {
<div
v-if="isSharedForm || (!readOnly && isUIAllowed('tableAttachment') && !isPublic && !isLocked)"
class="nc-attach-file group"
data-testid="attachment-cell-file-picker-button"
data-testid="attachment-expand-file-picker-button"
@click="open"
>
<MaterialSymbolsAttachFile class="transform group-hover:(text-accent scale-120)" />

2
tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts

@ -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 });
}

Loading…
Cancel
Save