add lighthouse CI checks for core features

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2023-04-13 16:49:26 +02:00
parent cb807e097a
commit 383f90e788
4 changed files with 104 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
'use strict';
module.exports = async (browser, context) => {
// launch browser for LHCI
const page = await browser.newPage();
await page.goto('http://localhost:3000');
await page.evaluate(() => {
localStorage.setItem('@backstage/core:SignInPage:provider', 'guest');
});
await page.goto('http://localhost:3000');
};