fix the entityRightPanel and serviceEntity playwright spec (#21352)

(cherry picked from commit bbffeb87c738316b75ef2005a12be7a74088fbc9)
This commit is contained in:
Ashish Gupta 2025-05-22 14:13:12 +05:30
parent 91cc21f859
commit e083293db7
3 changed files with 7 additions and 9 deletions

View File

@ -683,6 +683,10 @@ test.describe('Bulk Edit Entity', () => {
.locator('.inovua-react-toolkit-load-mask__background-layer')
.waitFor({ state: 'detached' });
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
await toastNotification(
page,
`Glossaryterm ${glossary.responseData.fullyQualifiedName} details updated successfully`

View File

@ -52,10 +52,6 @@ test('Show and Hide Right Collapsable Panel', async ({ page }) => {
page.locator('[data-testid="KnowledgePanel.GlossaryTerms"]')
).not.toBeVisible();
await expect(
page.locator('[data-testid="KnowledgePanel.CustomProperties"]')
).not.toBeVisible();
await expect(
page.locator('[data-testid="KnowledgePanel.TableConstraints"]')
).not.toBeVisible();
@ -75,10 +71,6 @@ test('Show and Hide Right Collapsable Panel', async ({ page }) => {
page.locator('[data-testid="KnowledgePanel.GlossaryTerms"]')
).toBeVisible();
await expect(
page.locator('[data-testid="KnowledgePanel.CustomProperties"]')
).toBeVisible();
await expect(
page.locator('[data-testid="KnowledgePanel.TableConstraints"]')
).toBeVisible();

View File

@ -249,7 +249,9 @@ export class DatabaseClass extends EntityClass {
await expect(
page
.getByTestId(`table-data-card_${searchTerm}`)
.getByRole('link', { name: owner })
.getByTestId('owner-label')
.getByTestId('owner-link')
.getByTestId(owner)
).toBeVisible();
}