chore: fix issue with accessbility score not been evaluated proeprly

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-03-07 14:04:59 +01:00
parent 8dc18dc8ee
commit 6e51338a67
3 changed files with 4 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');
};
+3 -2
View File
@@ -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 }],
},
},
},
+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",