Merge pull request #23442 from backstage/emmablam/a18yfix

A11Y: Fix lighthouse check with new auth system
This commit is contained in:
Ben Lambert
2024-03-07 15:19:43 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -7,5 +7,4 @@ module.exports = async (browser, context) => {
await page.evaluate(() => {
localStorage.setItem('@backstage/core:SignInPage:provider', 'guest');
});
await page.goto('http://localhost:3000');
};
+2 -2
View File
@@ -52,7 +52,7 @@ module.exports = {
outputPath: './.lighthouseci/reports',
preset: 'desktop',
},
startServerCommand: 'yarn dev',
startServerCommand: 'yarn start:lighthouse',
startServerReadyPattern: 'webpack compiled successfully',
startServerReadyTimeout: 600000,
numberOfRuns: 1,
@@ -64,7 +64,7 @@ module.exports = {
'categories:pwa': 'off',
'categories:best-practices': 'off',
'categories:seo': 'off',
'categories:accessibility': ['error', { minScore: 0.89 }],
'categories:accessibility': ['error', { minScore: 0.95 }],
},
},
},
+1
View File
@@ -42,6 +42,7 @@
"start": "yarn workspace example-app start",
"start-backend": "yarn workspace example-backend start",
"start-backend:next": "yarn workspace example-backend-next start",
"start:lighthouse": "concurrently 'yarn start' 'yarn start-backend:next'",
"start:microsite": "cd microsite/ && yarn start",
"start:next": "yarn workspace example-app-next start",
"storybook": "yarn ./storybook run start",