chore: fix issue with accessbility score not been evaluated proeprly
Signed-off-by: blam <ben@blam.sh>
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');
|
||||
};
|
||||
|
||||
+3
-2
@@ -16,6 +16,7 @@
|
||||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
// headful: true,
|
||||
url: [
|
||||
/** Software Catalog */
|
||||
'http://localhost:3000/catalog',
|
||||
@@ -52,7 +53,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 +65,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