Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended/full rulesets cause Pango-WARNING messages #531

Open
FedeAbella opened this issue Jul 27, 2023 · 0 comments
Open

Extended/full rulesets cause Pango-WARNING messages #531

FedeAbella opened this issue Jul 27, 2023 · 0 comments

Comments

@FedeAbella
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant