test: adding composable for credential page loading (#14217)

This commit is contained in:
shortstacked
2025-03-28 11:08:24 +00:00
committed by GitHub
parent 88f58514e6
commit 157b9c0925
3 changed files with 25 additions and 14 deletions

View File

@@ -0,0 +1,10 @@
export const verifyCredentialsListPageIsLoaded = () => {
cy.get('[data-test-id="resources-list-wrapper"], [data-test-id="empty-resources-list"]').should(
'be.visible',
);
};
export const navigateToCredentialsPageAndWaitForLoad = (credentialsPageUrl: string) => {
cy.visit(credentialsPageUrl);
verifyCredentialsListPageIsLoaded();
};