photoprism/frontend/tests/page-model/library.js

16 lines
729 B
JavaScript

import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.openImportFolderSelect = Selector(".input-import-folder input", { timeout: 15000 });
this.import = Selector(".action-import");
this.indexFolderSelect = Selector(".input-index-folder input", { timeout: 15000 });
this.index = Selector(".action-index");
this.importTab = Selector("#tab-library-import", { timeout: 15000 });
this.indexTab = Selector("#tab-library-index", { timeout: 15000 });
this.logsTab = Selector("#tab-library-logs", { timeout: 15000 });
this.moveCheckbox = Selector("label").withText("Move Files");
this.completeRescanCheckbox = Selector("label").withText("Complete Rescan");
}
}