mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
pally-ci: Ignore version update element (#42249)
* pa11y-ci: Ignore update version element * Add hideElements to pa11yci-pr.conf.js
This commit is contained in:
parent
2863af3bc3
commit
a897154017
@ -6,6 +6,7 @@ var config = {
|
||||
chromeLaunchConfig: {
|
||||
args: ['--no-sandbox'],
|
||||
},
|
||||
hideElements: '#updateVersion',
|
||||
},
|
||||
|
||||
urls: [
|
||||
@ -13,7 +14,7 @@ var config = {
|
||||
url: '${HOST}/login',
|
||||
wait: 500,
|
||||
rootElement: '.main-view',
|
||||
threshold: 13,
|
||||
threshold: 12,
|
||||
},
|
||||
{
|
||||
url: '${HOST}/login',
|
||||
@ -25,7 +26,7 @@ var config = {
|
||||
"click element button[aria-label='Login button']",
|
||||
"wait for element [aria-label='Skip change password button'] to be visible",
|
||||
],
|
||||
threshold: 14,
|
||||
threshold: 13,
|
||||
rootElement: '.main-view',
|
||||
},
|
||||
{
|
||||
|
@ -6,6 +6,7 @@ var config = {
|
||||
chromeLaunchConfig: {
|
||||
args: ['--no-sandbox'],
|
||||
},
|
||||
hideElements: '#updateVersion',
|
||||
},
|
||||
|
||||
urls: [
|
||||
|
@ -4,6 +4,7 @@ import { Icon, IconName } from '@grafana/ui';
|
||||
|
||||
export interface FooterLink {
|
||||
text: string;
|
||||
id?: string;
|
||||
icon?: string;
|
||||
url?: string;
|
||||
target?: string;
|
||||
@ -47,6 +48,7 @@ export let getVersionLinks = (): FooterLink[] => {
|
||||
|
||||
if (buildInfo.hasUpdate) {
|
||||
links.push({
|
||||
id: 'updateVersion',
|
||||
text: `New version available!`,
|
||||
icon: 'download-alt',
|
||||
url: 'https://grafana.com/grafana/download?utm_source=grafana_footer',
|
||||
@ -74,7 +76,7 @@ export const Footer: FC = React.memo(() => {
|
||||
<ul>
|
||||
{links.map((link) => (
|
||||
<li key={link.text}>
|
||||
<a href={link.url} target={link.target} rel="noopener">
|
||||
<a href={link.url} target={link.target} rel="noopener" id={link.id}>
|
||||
{link.icon && <Icon name={link.icon as IconName} />} {link.text}
|
||||
</a>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user