fix: ApiDocs Playwright spec (#17894)

* fix: ApiDocs Playwright spec

* fix(ui): Fix API docs test failure

---------

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Sachin Chaurasiya 2024-09-18 11:37:59 +05:30 committed by GitHub
parent 4d0339b270
commit e42a7d6e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,15 +25,18 @@ test.describe('API docs should work properly', () => {
await page.locator('[data-testid="help-icon"]').click();
await page.getByRole('link', { name: 'API', exact: true }).click();
await expect(
page.getByRole('link', {
name: 'openmetadata-dev@googlegroups',
})
).toBeVisible();
await page.getByTestId('loader').waitFor({ state: 'detached' });
await expect(
page.getByRole('link', {
name: 'openmetadata-dev@googlegroups.com',
exact: true,
})
).toBeVisible();
await expect(
page.getByRole('link', {
name: 'https://open-metadata.org',
exact: true,
})
).toBeVisible();
});