|
|
@ -8,7 +8,7 @@ export class MetaDataPage extends BasePage { |
|
|
|
super(dataSource.rootPage); |
|
|
|
super(dataSource.rootPage); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get(options?: any) { |
|
|
|
get() { |
|
|
|
return this.rootPage.locator('div.ant-modal-content'); |
|
|
|
return this.rootPage.locator('div.ant-modal-content'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -25,7 +25,6 @@ export class MetaDataPage extends BasePage { |
|
|
|
await this.get().click(); |
|
|
|
await this.get().click(); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
// await this.get().toHaveLength(0) // .waitFor({ state: 'detached' });
|
|
|
|
|
|
|
|
await this.rootPage.waitForSelector('div.ant-modal-content', { |
|
|
|
await this.rootPage.waitForSelector('div.ant-modal-content', { |
|
|
|
state: 'hidden', |
|
|
|
state: 'hidden', |
|
|
|
}); |
|
|
|
}); |
|
|
|