@genesislcap/foundation-testing 14.214.2 → 14.214.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,8 +8,17 @@ var test_2 = require("@playwright/test");
|
|
|
8
8
|
Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return test_2.expect; } });
|
|
9
9
|
var test_3 = require("@playwright/test");
|
|
10
10
|
Object.defineProperty(exports, "base", { enumerable: true, get: function () { return test_3.test; } });
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Run a lighthouse audit
|
|
13
|
+
* @param playwrightLHConfiguration - The configuration for the lighthouse audit
|
|
14
|
+
* @returns The lighthouse audit results
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
const playAudit = (playwrightLHConfiguration) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
const { playAudit: lighthousePlayAudit } = yield Promise.resolve().then(() => tslib_1.__importStar(require('playwright-lighthouse')));
|
|
19
|
+
return lighthousePlayAudit(playwrightLHConfiguration);
|
|
20
|
+
});
|
|
21
|
+
exports.playAudit = playAudit;
|
|
13
22
|
exports.DEFAULT_PORT = 5030;
|
|
14
23
|
exports.defaultPackageConfig = {
|
|
15
24
|
API_HOST: process.env.API_HOST,
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import type { Browser } from '@playwright/test';
|
|
2
|
+
import type { playwrightLighthouseConfig } from 'playwright-lighthouse';
|
|
2
3
|
export { expect } from '@playwright/test';
|
|
3
4
|
export { test as base } from '@playwright/test';
|
|
4
5
|
export type { Page, Locator } from '@playwright/test';
|
|
5
|
-
export { playAudit } from 'playwright-lighthouse';
|
|
6
6
|
export type { PlaywrightTestConfig } from '@playwright/test';
|
|
7
|
+
/**
|
|
8
|
+
* Run a lighthouse audit
|
|
9
|
+
* @param playwrightLHConfiguration - The configuration for the lighthouse audit
|
|
10
|
+
* @returns The lighthouse audit results
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare const playAudit: (playwrightLHConfiguration: playwrightLighthouseConfig) => Promise<any>;
|
|
7
14
|
/**
|
|
8
15
|
* @public
|
|
9
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/playwright/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/playwright/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,SAAS,8BAAqC,0BAA0B,iBAGpF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,EAAE,aAKlC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAMpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,6PAmBf,CAAC"}
|
|
@@ -3,7 +3,16 @@ import { chromium, test as base } from '@playwright/test';
|
|
|
3
3
|
import { getPort } from 'portfinder-sync';
|
|
4
4
|
export { expect } from '@playwright/test';
|
|
5
5
|
export { test as base } from '@playwright/test';
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Run a lighthouse audit
|
|
8
|
+
* @param playwrightLHConfiguration - The configuration for the lighthouse audit
|
|
9
|
+
* @returns The lighthouse audit results
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export const playAudit = (playwrightLHConfiguration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
+
const { playAudit: lighthousePlayAudit } = yield import('playwright-lighthouse');
|
|
14
|
+
return lighthousePlayAudit(playwrightLHConfiguration);
|
|
15
|
+
});
|
|
7
16
|
export const DEFAULT_PORT = 5030;
|
|
8
17
|
export const defaultPackageConfig = {
|
|
9
18
|
API_HOST: process.env.API_HOST,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-testing",
|
|
3
3
|
"description": "Genesis Foundation Testing",
|
|
4
|
-
"version": "14.214.
|
|
4
|
+
"version": "14.214.4",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@genesislcap/foundation-logger": "14.214.
|
|
82
|
+
"@genesislcap/foundation-logger": "14.214.4",
|
|
83
83
|
"@microsoft/fast-element": "^1.12.0",
|
|
84
84
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
85
85
|
"@playwright/test": "^1.46.1",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "bf09c1923937329fe6e048704860737f1b92e088"
|
|
105
105
|
}
|