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
@@ -0,0 +1,35 @@
class BuildChartComponent {
constructor(page) {
this.page = page;
}
chartsContainer() {
return this.page.locator('.chartsContainer');
}
displayValue(label) {
return this.page.locator('.displayContainer').filter({ hasText: label }).locator('.displayContent');
}
async getHighestAlloy() {
return await this.displayValue('Highest Alloy').textContent();
}
async getHighestEther() {
return await this.displayValue('Highest Ether').textContent();
}
async getHighestPyre() {
return await this.displayValue('Highest Pyre').textContent();
}
async getHighestArmy() {
return await this.displayValue('Highest Army').textContent();
}
async getChartCount() {
return await this.chartsContainer().locator('> div').count();
}
}
module.exports = BuildChartComponent;