test(segmentation): switch getSegmentCount to expect(rows).toHaveCount in panel specs (#6105)

This commit is contained in:
diattamo authored and GitHub committed 2026-06-24 11:05:27 -04:00
1 parent 8f6947b75d
commit 95200ec6e8
5 files changed
+24 -28

No files matched your search

+4 -3
View File
@@ -23,7 +23,8 @@ test.beforeEach(
);
test('should list segments in side panel for 3D only view', async ({ rightPanelPageObject }) => {
const numberOfSegments =
await rightPanelPageObject.labelMapSegmentationPanel.panel.getSegmentCount();
expect(numberOfSegments, 'The side panel should list 13 segments for the 3D only view.').toBe(13);
await expect(
rightPanelPageObject.labelMapSegmentationPanel.panel.rows,
'The side panel should list 13 segments for the 3D only view.'
).toHaveCount(13);
});