chore(ui): fix glossary playwright tests (#21198)

* chore: fix glossary playwright tests

* remove timeout for loader

* fix test
This commit is contained in:
Pranita Fulsundar 2025-05-15 17:57:03 +05:30 committed by GitHub
parent 2864e0f09d
commit eb16d6ac84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -598,7 +598,10 @@ export const validateGlossaryTerm = async (
const termSelector = `[data-row-key="${escapedFqn}"]`; const termSelector = `[data-row-key="${escapedFqn}"]`;
const statusSelector = `[data-testid="${escapedFqn}-status"]`; const statusSelector = `[data-testid="${escapedFqn}-status"]`;
await expect(page.locator('[data-testid="loader"]')).toBeHidden(); await expect(
page.getByTestId('glossary-terms-table').getByTestId('loader')
).toBeHidden();
await expect(page.locator('[data-testid="loader"]')).toHaveCount(0);
await expect( await expect(
page.getByTestId('glossary-terms-table').getByText('Terms') page.getByTestId('glossary-terms-table').getByText('Terms')

View File

@ -86,6 +86,7 @@ export default function EntitySummaryPanel({
if (!viewPermission) { if (!viewPermission) {
return ( return (
<ErrorPlaceHolder <ErrorPlaceHolder
className="border-none h-min-80"
size={SIZE.MEDIUM} size={SIZE.MEDIUM}
type={ERROR_PLACEHOLDER_TYPE.PERMISSION} type={ERROR_PLACEHOLDER_TYPE.PERMISSION}
/> />