0

pa11y .pa11y.json を使用して Web アプリケーションをテストしています。ログイン ページとダッシュボード ページをスキャンしたいと考えています。ただし、アプリケーションロジックがキーアップイベントをリッスンし、ユーザーがユーザー名とパスワードの入力を使用するとフォーカスするため、私のアクションではダッシュボードページをナビゲートできません。ただし、.pa11y.json アクションの set フィールドは、keyup イベントとフォーカスをトリガーしません。ボタンを無効にすると、永遠に無効になります。.pa11y.json アクションで keyup イベントをトリガーするにはどうすればよいですか?

ここに私の .pa11y.json スクリプトがあります

{
  "standard": "WCAG2AAA",
  "level": "error",
  "defaults": {
    "reporters": [
        ["json", { "fileName": "./results.json" }]
    ],
    "chromeLaunchConfig": {
      "args": ["--no-sandbox"]
    }
  },
  "ignore": [
  ],
  "urls": [
    {
      "url": "http://localhost:7000/",
      "actions": [
        "set field #userName to A",
        "set field #passWord to b",
        "click element #loginBtn",
        "wait for url to be http://localhost:7000/?root=landing",
        "wait for #cruise-dashboard to be visible",
        "screen capture example.png"
      ]    
    }
  ]
}
4

0 に答える 0