|
|
@ -329,6 +329,16 @@ export class CellPageObject extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
async unlinkVirtualCell({ index, columnHeader }: CellProps) { |
|
|
|
async unlinkVirtualCell({ index, columnHeader }: CellProps) { |
|
|
|
const cell = this.get({ index, columnHeader }); |
|
|
|
const cell = this.get({ index, columnHeader }); |
|
|
|
|
|
|
|
const isLink = await cell.locator('.nc-datatype-link').count(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Count will be 0 for BT columns
|
|
|
|
|
|
|
|
if (!isLink) { |
|
|
|
|
|
|
|
await cell.click(); |
|
|
|
|
|
|
|
await cell.locator('.nc-icon.unlink-icon').click(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// For HM/MM columns
|
|
|
|
|
|
|
|
else { |
|
|
|
await cell.locator('.nc-datatype-link').click(); |
|
|
|
await cell.locator('.nc-datatype-link').click(); |
|
|
|
await this.waitForResponse({ |
|
|
|
await this.waitForResponse({ |
|
|
|
uiAction: () => this.rootPage.locator(`[data-testid="nc-child-list-icon-unlink"]`).first().click(), |
|
|
|
uiAction: () => this.rootPage.locator(`[data-testid="nc-child-list-icon-unlink"]`).first().click(), |
|
|
@ -337,6 +347,7 @@ export class CellPageObject extends BasePage { |
|
|
|
}); |
|
|
|
}); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async verifyRoleAccess(param: { role: string }) { |
|
|
|
async verifyRoleAccess(param: { role: string }) { |
|
|
|
// normal text cell
|
|
|
|
// normal text cell
|
|
|
|