fix(test): flaky customize detail page test (#23932)

This commit is contained in:
Chirag Madlani 2025-10-20 11:56:08 +05:30 committed by GitHub
parent 7ea87e7ca2
commit 1c067d36da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -599,21 +599,25 @@ test.describe('Persona customization', () => {
state: 'detached',
});
expect(userPage.getByRole('tab', { name: 'Overview' })).toBeVisible();
expect(
await expect(
userPage.getByRole('tab', { name: 'Overview' })
).toBeVisible();
await expect(
userPage.getByRole('tab', { name: 'Glossary Terms' })
).toBeVisible();
expect(
await expect(
userPage.getByTestId('create-error-placeholder-Glossary Term')
).toBeVisible();
await userPage.getByRole('tab', { name: 'Overview' }).click();
expect(userPage.getByTestId('asset-description-container')).toBeVisible();
await expect(
userPage.getByTestId('asset-description-container')
).toBeVisible();
await userPage.getByRole('tab', { name: 'Glossary Terms' }).click();
expect(
await expect(
userPage.getByTestId('create-error-placeholder-Glossary Term')
).toBeVisible();
});