From bd27846b28d909c580cf07933d9c880a37b1d0e6 Mon Sep 17 00:00:00 2001 From: Sean Perkins <13732623+sean-perkins@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:41:00 -0500 Subject: [PATCH] chore(playwright): resolve axe violations with setContent (#28592) Issue number: N/A --------- ## What is the current behavior? When using `.setContent`, the initial page template is lacking key metadata that will result in AXE violations. ## What is the new behavior? - Adds a default `lang` to the `html` document root - Adds a default `title` tag ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- core/src/utils/test/playwright/page/utils/set-content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/utils/test/playwright/page/utils/set-content.ts b/core/src/utils/test/playwright/page/utils/set-content.ts index 3087789cdf..16fd1cc3b3 100644 --- a/core/src/utils/test/playwright/page/utils/set-content.ts +++ b/core/src/utils/test/playwright/page/utils/set-content.ts @@ -32,8 +32,9 @@ export const setContent = async (page: Page, html: string, testInfo: TestInfo, o const output = ` - + + Ionic Playwright Test