photoprism/frontend/tests/acceptance/page-model/places.js

15 lines
465 B
JavaScript
Raw Normal View History

2022-10-26 19:29:34 +02:00
import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.placesSearch = Selector('input[aria-label="Search"]');
2023-09-21 20:00:33 +02:00
this.openClusterInSearch = Selector("button.action-browse");
this.clearLocation = Selector("button.action-clear-location");
this.zoomOut = Selector("button.maplibregl-ctrl-zoom-out");
2022-10-26 19:29:34 +02:00
}
async search(term) {
await t.typeText(this.placesSearch, term, { replace: true }).pressKey("enter");
}
}