nx/nx-dev/nx-dev-e2e/src/recipes.spec.ts
Jordan Hall 7eb83940de
docs(core): remove reference to deno (#21631)
Co-authored-by: Isaac Mann <isaacplmann@gmail.com>
2024-02-12 15:57:10 -05:00

17 lines
636 B
TypeScript

import { test, expect } from '@playwright/test';
test.describe('nx-dev: Recipes pages', () => {
test('should list related recipes based on tags', async ({ page }) => {
await page.goto('/recipes/storybook/overview-react');
const relatedDocs = page.locator('[data-document="related"] li');
const relatedDocsText = await relatedDocs.allInnerTexts();
expect(relatedDocsText.length, 'has related docs').toBeGreaterThan(0);
// All text content has to be different
const distinct = new Set(relatedDocsText);
expect(distinct.size, 'all strings are different').toBe(
relatedDocsText.length
);
});
});