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