chore(test): fix failing tests (#20577)

This commit is contained in:
Chirag Madlani 2025-04-02 21:17:06 +05:30 committed by GitHub
parent 39979d2ed5
commit bca11d2fa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 3 deletions

View File

@ -57,6 +57,8 @@ test.describe.serial('Persona operations', () => {
test.beforeEach(async ({ page }) => {
await redirectToHomePage(page);
await settingClick(page, GlobalSettingOptions.PERSONA);
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
});
test('Persona creation should work properly', async ({ page }) => {
@ -140,7 +142,7 @@ test.describe.serial('Persona operations', () => {
);
});
test.skip('Persona update description flow should work properly', async ({
test('Persona update description flow should work properly', async ({
page,
}) => {
await page

View File

@ -157,7 +157,7 @@ test.describe.serial(
});
if (process.env.PLAYWRIGHT_IS_OSS) {
test.skip('Run application', async ({ page }) => {
test('Run application', async ({ page }) => {
const appResponse = page.waitForResponse(
`/api/v1/apps/name/DataInsightsApplication?fields=*`
);

View File

@ -140,7 +140,7 @@ test.describe('Login flow should work properly', () => {
await page.locator('[data-testid="go-back-button"]').click();
});
test.skip('Refresh should work', async ({ browser }) => {
test.fixme('Refresh should work', async ({ browser }) => {
const browserContext = await browser.newContext();
const { apiContext, afterAction } = await performAdminLogin(browser);
const page1 = await browserContext.newPage(),

View File

@ -232,9 +232,13 @@ export const PersonaDetailsPage = () => {
</Col>
<Col span={24}>
<DescriptionV1
newLook
description={personaDetails.description}
entityName={personaDetails.name}
entityType={EntityType.PERSONA}
hasEditAccess={
entityPermission.EditAll || entityPermission.EditDescription
}
showCommentsIcon={false}
onDescriptionUpdate={handleDescriptionUpdate}
/>