forked from kevadesu/forgejo
Migrate playwright to typescript
This commit is contained in:
parent
30f795d925
commit
3a3416c069
25 changed files with 42 additions and 79 deletions
|
@ -1,8 +1,7 @@
|
|||
import {expect} from '@playwright/test';
|
||||
import {expect, type Page} from '@playwright/test';
|
||||
import {AxeBuilder} from '@axe-core/playwright';
|
||||
|
||||
export async function validate_form({page}, scope) {
|
||||
scope ??= 'form';
|
||||
export async function validate_form({page}: {page: Page}, scope: 'form' | 'fieldset' = 'form') {
|
||||
const accessibilityScanResults = await new AxeBuilder({page})
|
||||
// disable checking for link style - should be fixed, but not now
|
||||
.disableRules('link-in-text-block')
|
Loading…
Add table
Add a link
Reference in a new issue