|
|
|
@ -11,7 +11,7 @@ export class LinkRecord extends BasePage {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async verify(cardTitle?: string[]) { |
|
|
|
|
await this.dashboard.get().locator('.nc-modal-link-record').waitFor(); |
|
|
|
|
await this.dashboard.get().locator('.nc-modal-link-record').last().waitFor(); |
|
|
|
|
const linkRecord = this.get(); |
|
|
|
|
|
|
|
|
|
// DOM element validation
|
|
|
|
@ -39,11 +39,12 @@ export class LinkRecord extends BasePage {
|
|
|
|
|
async select(cardTitle: string) { |
|
|
|
|
await this.rootPage.waitForTimeout(100); |
|
|
|
|
await this.get().locator(`.ant-card:has-text("${cardTitle}"):visible`).click(); |
|
|
|
|
await this.close(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async close() { |
|
|
|
|
await this.get().locator(`.nc-close-btn`).click(); |
|
|
|
|
await this.get().waitFor({ state: 'hidden' }); |
|
|
|
|
await this.get().locator('.nc-close-btn').last().click(); |
|
|
|
|
await this.get().last().waitFor({ state: 'hidden' }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
get() { |
|
|
|
|