visible/visible

View on GitHub
packages/@visi/plugin-wcag/src/rules/button-alt/button-alt.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function create has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async create(ctx: Context): Promise<void> {
    const dto = await ctx.session.runScript<[string, string][]>(`
      visible
        .$$('button')
        .map((elm) => [visible.createXPath(elm), elm.textContent]);
Severity: Minor
Found in packages/@visi/plugin-wcag/src/rules/button-alt/button-alt.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status