Pa11y: Decrease error thresholds for PRs (#85178)

* Pa11y-pr: lower error thresholds

* Increase threshold for alerting
pull/85243/head
Tobias Skarhed 1 year ago committed by GitHub
parent 4cf0c8dfb2
commit 6248bdda48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 24
      .pa11yci-pr.conf.js

@ -34,7 +34,7 @@ var dashboardSettings = [
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
// TODO: improve the accessibility of the permission tab https://github.com/grafana/grafana/issues/77203 // TODO: improve the accessibility of the permission tab https://github.com/grafana/grafana/issues/77203
threshold: 11, threshold: 5,
}, },
{ {
url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge?orgId=1&editview=dashboard_json', url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge?orgId=1&editview=dashboard_json',
@ -64,7 +64,7 @@ var config = {
url: '${HOST}/login', url: '${HOST}/login',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 13, threshold: 0,
}, },
{ {
url: '${HOST}/login', url: '${HOST}/login',
@ -76,13 +76,13 @@ var config = {
"click element button[data-testid='data-testid Login button']", "click element button[data-testid='data-testid Login button']",
"wait for element button[data-testid='data-testid Skip change password button'] to be visible", "wait for element button[data-testid='data-testid Skip change password button'] to be visible",
], ],
threshold: 15, threshold: 2,
rootElement: '.main-view', rootElement: '.main-view',
}, },
{ {
url: '${HOST}/?orgId=1', url: '${HOST}/?orgId=1',
wait: 500, wait: 500,
threshold: 3, threshold: 0,
}, },
{ {
url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge', url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge',
@ -95,7 +95,7 @@ var config = {
url: '${HOST}/?orgId=1&search=open', url: '${HOST}/?orgId=1&search=open',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 3, threshold: 0,
}, },
{ {
url: '${HOST}/alerting/list', url: '${HOST}/alerting/list',
@ -109,43 +109,43 @@ var config = {
url: '${HOST}/datasources', url: '${HOST}/datasources',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 3, threshold: 0,
}, },
{ {
url: '${HOST}/org/users', url: '${HOST}/org/users',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 1, threshold: 0,
}, },
{ {
url: '${HOST}/org/teams', url: '${HOST}/org/teams',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 1, threshold: 0,
}, },
{ {
url: '${HOST}/plugins', url: '${HOST}/plugins',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 3, threshold: 0,
}, },
{ {
url: '${HOST}/org', url: '${HOST}/org',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 1, threshold: 0,
}, },
{ {
url: '${HOST}/org/apikeys', url: '${HOST}/org/apikeys',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 4, threshold: 2,
}, },
{ {
url: '${HOST}/dashboards', url: '${HOST}/dashboards',
wait: 500, wait: 500,
rootElement: '.main-view', rootElement: '.main-view',
threshold: 1, threshold: 0,
}, },
], ],
}; };

Loading…
Cancel
Save