Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/components/CameraManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const { showDialog, width } = defineProps({
size="small"
color="white"
class="text-caption text-none"
data-testid="closeCameraManagerButton"
@click="emit('close')"
>Close</v-btn
>
Expand Down
1 change: 1 addition & 0 deletions app/components/CameraManager/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ async function saveRename() {
color="success"
size="x-small"
class="mr-1"
:data-testid="'restoreCameraPositionButton_' + position.name"
@click="restorePosition(position.id)"
>
<v-icon size="14">mdi-play</v-icon>
Expand Down
2 changes: 2 additions & 0 deletions app/components/CameraManager/Saver.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function saveCurrentPosition() {
v-model="newPositionName"
label="Position Name"
placeholder="e.g. Front View"
data-testid="cameraPositionNameInput"
density="compact"
variant="outlined"
hide-details
Expand All @@ -39,6 +40,7 @@ async function saveCurrentPosition() {
variant="elevated"
block
size="small"
data-testid="saveCameraPositionButton"
:disabled="!newPositionName"
@click="saveCurrentPosition"
height="32"
Expand Down
2 changes: 2 additions & 0 deletions app/components/CameraOrientation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ watch(hoveredFace, (newFace, oldFace) => {
size="32"
class="satellite-node position-absolute"
:style="orientation.position"
:data-testid="'cameraOrientation' + orientation.vtkKey + 'Button'"
@mouseenter="hoveredFace = orientation.face"
@mouseleave="hoveredFace = undefined"
@click.stop="emit('select', orientation.value)"
Expand Down Expand Up @@ -241,6 +242,7 @@ watch(hoveredFace, (newFace, oldFace) => {
size="32"
variant="text"
class="ma-1"
:data-testid="'cameraOrientation' + orientation.vtkKey + 'Button'"
@mouseenter="hoveredFace = orientation.face"
@mouseleave="hoveredFace = undefined"
@click.stop="emit('select', orientation.value)"
Expand Down
7 changes: 7 additions & 0 deletions app/components/Screenshot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ watch(screenshot_type, (value) => {
value="file"
prepend-icon="mdi-file-download-outline"
size="small"
data-testid="screenshotFileButton"
class="text-caption text-none"
>
File
Expand All @@ -104,6 +105,7 @@ watch(screenshot_type, (value) => {
value="clipboard"
prepend-icon="mdi-content-copy"
size="small"
data-testid="screenshotClipboardButton"
class="text-caption text-none"
>
Clipboard
Expand All @@ -119,6 +121,7 @@ watch(screenshot_type, (value) => {
label="File name"
variant="outlined"
density="compact"
data-testid="screenshotFileNameInput"
hide-details
class="text-caption"
></v-text-field>
Expand All @@ -130,6 +133,7 @@ watch(screenshot_type, (value) => {
label="Extension"
variant="outlined"
density="compact"
data-testid="screenshotExtensionSelect"
hide-details
required
class="text-caption"
Expand All @@ -143,6 +147,7 @@ watch(screenshot_type, (value) => {
v-model="include_background"
:disabled="screenshot_type === 'file' && output_extension !== 'png'"
label="Include background"
data-testid="screenshotIncludeBackgroundSwitch"
density="compact"
hide-details
inset
Expand All @@ -158,6 +163,7 @@ watch(screenshot_type, (value) => {
variant="text"
size="small"
color="white"
data-testid="screenshotCancelButton"
class="text-caption text-none"
@click="show = false"
>
Expand All @@ -167,6 +173,7 @@ watch(screenshot_type, (value) => {
variant="outlined"
size="small"
class="text-caption text-none"
data-testid="screenshotActionButton"
:disabled="(screenshot_type === 'file' && !filename) || !output_extension"
color="white"
@click="takeScreenshot()"
Expand Down
1 change: 1 addition & 0 deletions app/components/ViewToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const camera_options = computed(() => [
<ActionButton
:icon="item.icon"
:tooltip="item.title"
:data-testid="camera_option.testId + item.title"
:color="
hybridViewerStore.is_hover_highlight &&
hybridViewerStore.hover_highlight_field_type ===
Expand Down
2 changes: 2 additions & 0 deletions app/components/Viewer/Ui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ defineExpose({ get_viewer_id });
variant="flat"
prepend-icon="mdi-crosshairs-gps"
class="pick-pulse"
data-testid="pickingActiveChip"
style="pointer-events: auto"
@click="viewerStore.toggle_picking_mode(false)"
>
Expand All @@ -116,6 +117,7 @@ defineExpose({ get_viewer_id });
size="large"
variant="flat"
class="pick-pulse"
data-testid="hoverHighlightChip"
style="pointer-events: auto"
@click="stopHoverHighlight"
>
Expand Down
Loading