mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-25 17:37:57 +00:00
fix cypress for the Customzie Landing and EntityVersion page (#17744)
This commit is contained in:
parent
1a276450fa
commit
dcad829a80
@ -55,14 +55,18 @@ export const navigateToCustomizeLandingPage = ({
|
||||
`/api/v1/docStore/name/persona.${personaName}.Page.LandingPage`,
|
||||
'getCustomPageData'
|
||||
);
|
||||
interceptURL('GET', `/api/v1/users/*?fields=follows%2Cowns`, 'getMyData');
|
||||
interceptURL(
|
||||
'GET',
|
||||
'/api/v1/search/query?q=*%20AND%20followers:**',
|
||||
'getFollowersData'
|
||||
);
|
||||
|
||||
cy.get(
|
||||
`[data-testid="persona-details-card-${personaName}"] [data-testid="customize-page-button"]`
|
||||
).click();
|
||||
|
||||
verifyResponseStatusCode('@getCustomPageData', customPageDataResponse);
|
||||
verifyResponseStatusCode('@getMyData', 200);
|
||||
verifyResponseStatusCode('@getFollowersData', 200);
|
||||
};
|
||||
|
||||
export const saveLayout = () => {
|
||||
|
@ -176,8 +176,8 @@ export const getTextDiff = (
|
||||
}
|
||||
|
||||
if (
|
||||
newText.includes(imagePlaceholder) ||
|
||||
oldText.includes(imagePlaceholder)
|
||||
newText?.includes(imagePlaceholder) ||
|
||||
oldText?.includes(imagePlaceholder)
|
||||
) {
|
||||
return newText;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user