test(segmentation): switch getSegmentCount to expect(rows).toHaveCount in panel specs (#6105)
This commit is contained in:
1 parent
8f6947b75d
commit
95200ec6e8
5 files changed
+24
-28
No files matched your search
@@ -152,8 +152,7 @@ test('duplicated contour will be generated with a new color', async ({
|
||||
);
|
||||
|
||||
// duplicate the segment
|
||||
const initialCount = await panel.getSegmentCount();
|
||||
expect(initialCount, 'Expected to start with 4 segments').toBe(4);
|
||||
await expect(panel.rows, 'Expected to start with 4 segments').toHaveCount(4);
|
||||
await segment0.actions.duplicate();
|
||||
await segment0.toggleVisibility(); // toggle original segment 0 visibility off to be able to grab the duplicated segment's path
|
||||
|
||||
|
||||
Reference in new issue
Block a user