Add Accessibility and SEO Meta Tags Tests#20
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Accessibility and SEO Meta Tags Tests
Summary
This PR adds E2E tests for accessibility and SEO meta tags. Additionally, it updates the
astro.config.mjsfile to include Shiki syntax highlighting configuration.Changes
Updated
astro.config.mjs:markdownsection;Updated
global.css:astro-codestyles for both light and dark themes;Created new E2E test files:
test/E2ETesting/a11y.spec.ts: Tests for accessibility using@axe-core/playwright;test/E2ETesting/meta.spec.ts: Tests for SEO meta tags;Added additional meta tags in
Header.astro:Open Graphtags;hreffor all available locales;canonicaltag and ensured that the<link rel="canonical">tag dynamically updates based on the current page URL;Fixed accessibility problems:
altattributes in:projects/en/wallTheme.md;projects/pt/wallTheme.md;projects/en/portfolio.md;projects/pt/portfolio.md;aria-labelattributes in:Skills.astro;LanguageSelect.astro;[lang]/about.astro;h5content toh3in[lang]/about.astro;Updated
i18n/utils.tsto include a function for getting all locales:getAllLocalesto return an array of all locale keys;Updated dynamic routes in
[lang]/projects/[...slug].astro:getAllLocalesfunction to return an array of all locale keys;Notes
The PR includes updates to the project's accessibility testing by leveraging
@axe-core/playwright. This will help in identifying any potential issues related to web accessibility. Additionally, the tests ensure that all pages have the correct<meta>tags for SEO, including title, description, Open Graph tags, and canonical links.