packages/@visi/plugin-wcag/src/rules/button-alt/button-alt.ts
Function create
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async create(ctx: Context): Promise<void> {
const dto = await ctx.session.runScript<[string, string][]>(`
visible
.$$('button')
.map((elm) => [visible.createXPath(elm), elm.textContent]);