Skip to content

Commit 7d83fb9

Browse files
feat: add utility to check if component properties are NOT visible in the UI
1 parent f4bd853 commit 7d83fb9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

e2e/helpers/properties.helpers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ export const checkPropertiesExist = async (
1919
await expect(propLocator).toBeVisible();
2020
}
2121
};
22+
23+
export const checkPropertiesDoNotExist = async (
24+
page: Page,
25+
properties: string[]
26+
) => {
27+
for (const property of properties) {
28+
const propLocator = page.getByText(property, { exact: true });
29+
await expect(propLocator).not.toBeVisible();
30+
}
31+
};

0 commit comments

Comments
 (0)