We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b08baba commit c463cb7Copy full SHA for c463cb7
1 file changed
e2e/helpers/properties.helpers.ts
@@ -1,4 +1,4 @@
1
-import { Page } from '@playwright/test';
+import { Page, expect } from '@playwright/test';
2
import { getByShapeType } from './konva-testing.helpers';
3
import { Group } from 'konva/lib/Group';
4
@@ -9,3 +9,13 @@ export const getShapeBackgroundColor = async (
9
const shape = (await getByShapeType(page, shapeType)) as Group;
10
return shape?.children?.[0]?.attrs?.fill;
11
};
12
+
13
+export const checkPropertiesExist = async (
14
+ page: Page,
15
+ properties: string[]
16
+) => {
17
+ for (const property of properties) {
18
+ const propLocator = page.getByText(property, { exact: true });
19
+ await expect(propLocator).toBeVisible();
20
+ }
21
+};
0 commit comments