Files
2026-05-31 14:33:58 -04:00

17 lines
363 B
JavaScript

class TimelineComponent {
constructor(page) {
this.page = page;
}
container() {
return this.page.locator('.calculatorGrid > div').filter({ hasText: 'Timeline highlights' });
}
async containsEntity(name) {
const text = (await this.container().textContent()) || '';
return text.includes(name);
}
}
module.exports = TimelineComponent;