mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
The following shortcuts are tested: - Common page shortcuts: Search focus (Ctrl+F), Refresh (Ctrl+R), Upload dialog (Ctrl+U). - Lightbox shortcuts: Info panel toggle (Ctrl+I), Mute/Unmute (Ctrl+M), Slideshow play/pause (Ctrl+S), Archive (Ctrl+A), Download (Ctrl+D), Edit (Ctrl+E), Fullscreen toggle (Ctrl+F), Like/Unlike (Ctrl+L). - Expansion panel toggle (Shift+Ctrl+F) and focusing search fields on specific pages (People, Labels, Library Errors) (Ctrl+F).
17 lines
790 B
JavaScript
17 lines
790 B
JavaScript
import { Selector, t } from "testcafe";
|
|
|
|
export default class Page {
|
|
constructor() {
|
|
this.openImportFolderSelect = Selector(".input-import-folder input", { timeout: 15000 });
|
|
this.import = Selector("button.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");
|
|
this.searchInput = Selector(".input-search input");
|
|
}
|
|
}
|