test: add E2E test for contour combine intersect and subtract operations (#6131)

This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-07-11 02:21:39 -04:00
1 parent f0e2f64397
commit 01939e2236
7 files changed
+189 -4

No files matched your search

@@ -70,7 +70,10 @@ function SegmentSelector({
onValueChange={onValueChange}
value={value}
>
<SelectTrigger className="overflow-hidden">
<SelectTrigger
className="overflow-hidden"
data-cy={`logical-contour-segment-${label.toLowerCase()}-trigger`}
>
<SelectValue placeholder={t(placeholder)} />
</SelectTrigger>
<SelectContent>
@@ -180,6 +183,7 @@ function LogicalContourOperationOptions() {
value={value}
key={`logical-contour-operation-${value}`}
onClick={() => setOperation(option)}
data-cy={`logical-contour-operation-${value}`}
>
<Icons.ByName name={icon}></Icons.ByName>
</TabsTrigger>
@@ -207,6 +211,7 @@ function LogicalContourOperationOptions() {
/>
<div className="flex justify-end pl-[34px]">
<Button
data-cy="apply-logical-contour-operation"
className="border-primary/60 grow border"
variant="ghost"
onClick={() => {
@@ -221,6 +226,7 @@ function LogicalContourOperationOptions() {
<div className="flex items-center justify-start gap-2">
<Switch
id="logical-contour-operations-create-new-segment-switch"
data-cy="logical-contour-create-new-segment-switch"
onCheckedChange={setCreateNewSegment}
></Switch>
<Label htmlFor="logical-contour-operations-create-new-segment-switch">