Extended/full rulesets cause Pango-WARNING messages
FedeAbella opened this issue · 0 comments
FedeAbella commented
Running tests with the extended or full rulesets when there's text present causes WARNING
messages from Pango to be displayed, that don't appear when using the base ruleset. Unsure as to whether these warnings may interfere with testing any particular rule.
Environment:
node v18.15.0
@salesforce/sfdx-lwc-jest v1.3.0
@sa11y/jest@5.0.1
Testing Component:
Markup:
<template>
<lightning-card>
<button></button>
<p>Some text</p>
</lightning-card>
</template>
Javascript:
import { LightningElement } from "lwc";
export default class TestSa11y extends LightningElement {}
Test:
import { createElement } from "lwc";
import TestSa11y from "c/testSa11y";
describe("c-test-sa11-y", () => {
it("Tests button-name", () => {
const element = createElement("c-test-sa11-y", {
is: TestSa11y
});
document.body.appendChild(element);
expect(1).toBe(1);
});
});
Test Results:
Using extended ruleset (process.env.SA11Y_RULESET = "extended"
in setupEnvVars.js
) (test result file)
Using base ruleset ((process.env.SA11Y_RULESET = "base"
in setupEnvVars.js
) (test result file)
Expected Behaviour: Changing rulesets should not bring up undesired warnings clogging up CI/full run logs.