Skip to content

Commit

Permalink
add tags loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
karanh37 committed Dec 10, 2024
1 parent 333b7f6 commit ca1a460
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,28 @@ test.describe('Explore Tree scenarios ', () => {
await afterAction();
});
});

test.describe('Explore page', () => {
test('Check the listing of tags', async ({ page }) => {
await page
.locator('div')
.filter({ hasText: /^Governance$/ })
.locator('svg')
.first()
.click();

await expect(page.getByRole('tree')).toContainText('Glossaries');
await expect(page.getByRole('tree')).toContainText('Tags');

const res = page.waitForResponse(
'/api/v1/search/query?q=&index=dataAsset*'
);
// click on tags
await page.getByTestId('explore-tree-title-Tags').click();

const response = await res;
const jsonResponse = await response.json();

expect(jsonResponse.hits.hits.length).toBeGreaterThan(0);
});
});

0 comments on commit ca1a460

Please sign in to comment.