fix(ui-next): Add validation for opacity and border inputs in the segmentation panel - OHIF-2332 (#5819)
This commit is contained in:
1 parent
9e4c0bb7a2
commit
a8f709982f
4 files changed
+242
-50
No files matched your search
@@ -201,6 +201,51 @@ export class RightPanelPageObject {
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
get config() {
|
||||
const configToggle = page.getByTestId('segmentation-config-toggle-Labelmap');
|
||||
return {
|
||||
toggle: {
|
||||
locator: configToggle,
|
||||
click: async () => {
|
||||
await configToggle.click();
|
||||
},
|
||||
},
|
||||
|
||||
get opacity() {
|
||||
const container = page.getByTestId('segmentation-config-opacity-Labelmap');
|
||||
return {
|
||||
input: container.locator('input'),
|
||||
slider: container.getByRole('slider'),
|
||||
fill: async (value: string) => {
|
||||
await container.locator('input').fill(value);
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
get border() {
|
||||
const container = page.getByTestId('segmentation-config-border-Labelmap');
|
||||
return {
|
||||
input: container.locator('input'),
|
||||
slider: container.getByRole('slider'),
|
||||
fill: async (value: string) => {
|
||||
await container.locator('input').fill(value);
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
get opacityInactive() {
|
||||
const container = page.getByTestId('segmentation-config-opacity-inactive-Labelmap');
|
||||
return {
|
||||
input: container.locator('input'),
|
||||
slider: container.getByRole('slider'),
|
||||
fill: async (value: string) => {
|
||||
await container.locator('input').fill(value);
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user