Playwright start

This commit is contained in:
2026-05-30 10:04:12 -04:00
parent 73f29cea08
commit 1f7a0819fc
108 changed files with 37445 additions and 62 deletions
+27
View File
@@ -0,0 +1,27 @@
const BasePage = require('./base.page');
class DatabasePage extends BasePage {
get url() { return 'database'; }
async filterName(name) {
await this.website.enterInput(this.website.findAll('filterName').first(), name);
return this;
}
async getEntityName(entityType, entityName) {
return await this.website
.findWithParent('entityName', `${entityType.toLowerCase()}-${entityName.toLowerCase()}`)
.innerText();
}
async getEntityNameByIndex(index) {
return await this.website.findAll('entityName').nth(index).innerText();
}
async goto() {
await this.website.goto(this.url);
return this;
}
}
module.exports = DatabasePage;