We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b777a93 commit 3710ebbCopy full SHA for 3710ebb
2 files changed
e2e/helpers/index.ts
@@ -1,2 +1,3 @@
1
export * from './konva-testing.helpers';
2
export * from './position.helpers';
3
+export * from './properties.helpers';
e2e/helpers/properties.helpers.ts
@@ -0,0 +1,11 @@
+import { Page } from '@playwright/test';
+import { getByShapeType } from './konva-testing.helpers';
+import { Group } from 'konva/lib/Group';
4
+
5
+export const getShapeBackgroundColor = async (
6
+ page: Page,
7
+ shapeType: string
8
+): Promise<string> => {
9
+ const shape = (await getByShapeType(page, shapeType)) as Group;
10
+ return shape?.children?.[0]?.attrs?.fill;
11
+};
0 commit comments