Merge pull request #23442 from backstage/emmablam/a18yfix
A11Y: Fix lighthouse check with new auth system
This commit is contained in:
@@ -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
@@ -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 }],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user