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,37 @@
class TimingComponent {
constructor(website) {
this.website = website;
}
attackTimeInput() {
return this.formNumberInput('Attack Time');
}
travelTimeInput() {
return this.formNumberInput('Travel Time');
}
formNumberInput(label) {
return this.website.locator(`.formNumberContainer`).filter({ hasText: label }).locator('input[type="number"]');
}
async setAttackTime(value) {
await this.attackTimeInput().fill(String(value));
await this.attackTimeInput().press('Enter');
}
async setTravelTime(value) {
await this.travelTimeInput().fill(String(value));
await this.travelTimeInput().press('Enter');
}
async getAttackTime() {
return await this.attackTimeInput().inputValue();
}
async getTravelTime() {
return await this.travelTimeInput().inputValue();
}
}
module.exports = TimingComponent;