|
|
@ -69,13 +69,27 @@ export class TopbarPage extends BasePage { |
|
|
|
return await this.getClipboardText(); |
|
|
|
return await this.getClipboardText(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async openDetailedTab() { |
|
|
|
async openDetailedTab({ waitForResponse = true } = {}) { |
|
|
|
await this.btn_details.click(); |
|
|
|
if (waitForResponse) { |
|
|
|
|
|
|
|
await this.waitForResponse({ |
|
|
|
|
|
|
|
uiAction: async () => await this.btn_details.click(), |
|
|
|
|
|
|
|
requestUrlPathToMatch: 'api/v1/db/meta/tables/', |
|
|
|
|
|
|
|
httpMethodsToMatch: ['GET'], |
|
|
|
|
|
|
|
responseJsonMatcher: json => json['hash'], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
await this.btn_details.click(); |
|
|
|
|
|
|
|
} |
|
|
|
await this.rootPage.waitForTimeout(500); |
|
|
|
await this.rootPage.waitForTimeout(500); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async openDataTab() { |
|
|
|
async openDataTab() { |
|
|
|
await this.btn_data.click(); |
|
|
|
await this.waitForResponse({ |
|
|
|
|
|
|
|
uiAction: async () => await this.btn_data.click(), |
|
|
|
|
|
|
|
requestUrlPathToMatch: 'api/v1/db/data/noco/', |
|
|
|
|
|
|
|
httpMethodsToMatch: ['GET'], |
|
|
|
|
|
|
|
responseJsonMatcher: json => json['list'], |
|
|
|
|
|
|
|
}); |
|
|
|
await this.rootPage.waitForTimeout(500); |
|
|
|
await this.rootPage.waitForTimeout(500); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|