feat(tests): Add tests for duplicating contour segments (#6002)

This commit is contained in:
diattamo authored and GitHub committed 2026-05-20 21:18:58 -04:00
1 parent d186749c5a
commit 2258c7957a
7 files changed
+232 -31

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { SvgInnerElement, ViewportPageObject } from '../pages/ViewportPageObject';
const getSvgAttribute = async ({
viewportPageObject,
svgInnerElement,
attributeName,
viewportId = 'default',
nth = 0,
}: {
viewportPageObject: ViewportPageObject;
svgInnerElement: SvgInnerElement;
attributeName: string;
viewportId?: string;
nth?: number;
}) => {
return (await viewportPageObject.getById(viewportId))
.svg(svgInnerElement)
.nth(nth)
.getAttribute(attributeName);
};
export { getSvgAttribute };