test(contour): Add the ContourSegmentToggleLock.spec.ts test file to test contour locking (#6072)

This commit is contained in:
diattamo authored and GitHub committed 2026-06-23 01:52:35 -04:00
1 parent 1f6670c602
commit b24f039735
10 files changed
+253 -55

No files matched your search

+9 -1
View File
@@ -1,4 +1,4 @@
import { Page } from '@playwright/test';
import { Locator, Page } from '@playwright/test';
import { expect } from 'playwright-test-coverage';
import { DOMOverlayPageObject } from '../pages';
@@ -65,3 +65,11 @@ export async function assertBoundingBoxIsContainedWithin({
export async function expectRowSelected(rowObject) {
await expect(rowObject.locator).toContainClass('bg-popover');
}
export async function expectRowLocked(rowObject: { lockIcon: Locator }) {
await expect(rowObject.lockIcon, 'Expected the row to show the lock icon').toHaveCount(1);
}
export async function expectRowUnlocked(rowObject: { lockIcon: Locator }) {
await expect(rowObject.lockIcon, 'Expected the row to not show the lock icon').toHaveCount(0);
}