EddieHubCommunity / good-first-issue-finder

Issue-Crawler for GitHub based on Sveltekit
https://finder.eddiehub.org
MIT License
528 stars 334 forks source link

bugITwhisperer: fix test - first left menu element and page header have the same name #378 #386

Closed bugITwhisperer closed 1 year ago

bugITwhisperer commented 1 year ago

Fixes Issue https://github.com/EddieHubCommunity/good-first-issue-finder/issues/378

Changes proposed

test('Introduction element has the same name as the page headline', async ({ page }) => {
  // navigate to the docs landing page /docs
  await page.goto('/docs');

  // check if both elements - first left menu element and page header have the same name
  const pageHeadlineName = await page.textContent('h1');
  const introElement = await page.locator('.space-y-4 .active').innerHTML();
  const introElementName = introElement.toString();
  expect(introElementName).toEqual(pageHeadlineName);
});
bugITwhisperer commented 1 year ago

@Cahllagerfeld : can you take a look at those changes?

bugITwhisperer commented 1 year ago

@Cahllagerfeld : conflicts resolved 👍