photoprism/frontend/tests/acceptance/page-model/places.js
2023-09-21 20:00:56 +02:00

14 lines
465 B
JavaScript

import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.placesSearch = Selector('input[aria-label="Search"]');
this.openClusterInSearch = Selector("button.action-browse");
this.clearLocation = Selector("button.action-clear-location");
this.zoomOut = Selector("button.maplibregl-ctrl-zoom-out");
}
async search(term) {
await t.typeText(this.placesSearch, term, { replace: true }).pressKey("enter");
}
}