@genesislcap/foundation-header 14.30.3 → 14.31.0
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.
- package/package.json +18 -34
- package/playwright.config.ts +1 -50
- package/test/e2e/flows/001-foundation-header.e2e.ts +1 -1
- package/test/e2e/pages/header.ts +5 -2
- package/jsdom.setup.ts +0 -1
- package/tsm.js +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-header",
|
|
3
3
|
"description": "Genesis Foundation Header",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.31.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -38,42 +38,26 @@
|
|
|
38
38
|
"dev:webpack": "genx dev -b webpack",
|
|
39
39
|
"dev:webpack:https": "npm run dev:webpack -- --https",
|
|
40
40
|
"serve": "genx serve",
|
|
41
|
-
"test": "
|
|
42
|
-
"test:coverage": "
|
|
43
|
-
"test:coverage:
|
|
44
|
-
"test:
|
|
45
|
-
"test:e2e": "
|
|
46
|
-
"test:e2e:
|
|
47
|
-
"test:
|
|
48
|
-
"test:unit": "
|
|
49
|
-
"test:unit:
|
|
50
|
-
"test:
|
|
51
|
-
"test:unit:node": "npm run test:unit:node:src && npm run test:unit:node:test",
|
|
52
|
-
"test:unit:node:src": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./src \".*.test.ts\"",
|
|
53
|
-
"test:unit:node:test": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./test/unit \".*.test.ts\"",
|
|
54
|
-
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
41
|
+
"test": "genx test",
|
|
42
|
+
"test:coverage": "genx test --coverage",
|
|
43
|
+
"test:coverage:browser": "genx test --coverage --browser",
|
|
44
|
+
"test:e2e": "genx test --e2e",
|
|
45
|
+
"test:e2e:debug": "genx test --e2e --debug",
|
|
46
|
+
"test:e2e:ui": "genx test --e2e --interactive",
|
|
47
|
+
"test:unit:browser": "genx test --browser",
|
|
48
|
+
"test:unit:browser:watch": "genx test --browser --watch",
|
|
49
|
+
"test:unit:watch": "genx test --watch",
|
|
50
|
+
"test:debug": "genx test --debug"
|
|
55
51
|
},
|
|
56
52
|
"devDependencies": {
|
|
57
|
-
"@genesislcap/foundation-testing": "^14.
|
|
58
|
-
"@genesislcap/genx": "^14.
|
|
59
|
-
"@playwright/test": "^1.18.1",
|
|
60
|
-
"c8": "^7.11.0",
|
|
61
|
-
"cross-env": "^7.0.3",
|
|
62
|
-
"esm": "^3.2.25",
|
|
63
|
-
"jsdom": "^19.0.0",
|
|
64
|
-
"lighthouse": "^9.6.8",
|
|
65
|
-
"playwright-lighthouse": "^2.2.2",
|
|
66
|
-
"playwright-test": "^8.4.0",
|
|
67
|
-
"tsm": "^2.2.1",
|
|
68
|
-
"typescript": "^4.5.5",
|
|
69
|
-
"uvu": "0.5.4",
|
|
70
|
-
"watchlist": "^0.3.1"
|
|
53
|
+
"@genesislcap/foundation-testing": "^14.31.0",
|
|
54
|
+
"@genesislcap/genx": "^14.31.0"
|
|
71
55
|
},
|
|
72
56
|
"dependencies": {
|
|
73
|
-
"@genesislcap/foundation-comms": "^14.
|
|
74
|
-
"@genesislcap/foundation-events": "^14.
|
|
75
|
-
"@genesislcap/foundation-utils": "^14.
|
|
76
|
-
"@genesislcap/foundation-zero": "^14.
|
|
57
|
+
"@genesislcap/foundation-comms": "^14.31.0",
|
|
58
|
+
"@genesislcap/foundation-events": "^14.31.0",
|
|
59
|
+
"@genesislcap/foundation-utils": "^14.31.0",
|
|
60
|
+
"@genesislcap/foundation-zero": "^14.31.0",
|
|
77
61
|
"@microsoft/fast-colors": "^5.1.4",
|
|
78
62
|
"@microsoft/fast-components": "^2.21.3",
|
|
79
63
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -89,5 +73,5 @@
|
|
|
89
73
|
"access": "public"
|
|
90
74
|
},
|
|
91
75
|
"customElements": "dist/custom-elements.json",
|
|
92
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2eac7177426f939beb5bcd3b78baf98f25f0e630"
|
|
93
77
|
}
|
package/playwright.config.ts
CHANGED
|
@@ -1,50 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* If this was an app level config, we might import each fixture from the mfs we're using to create a union
|
|
5
|
-
*/
|
|
6
|
-
import type { TestFixture as HeaderFixture } from './test/e2e';
|
|
7
|
-
|
|
8
|
-
type Fixtures = HeaderFixture & {}; // < and several others if this was app level
|
|
9
|
-
|
|
10
|
-
const config: PlaywrightTestConfig<Fixtures> = {
|
|
11
|
-
testMatch: '**/*.e2e.ts',
|
|
12
|
-
globalSetup: '@genesislcap/foundation-testing/playwright', // returns teardown
|
|
13
|
-
/**
|
|
14
|
-
* We might create a discreet project per mf, or an entire config per mf, will know soon enough...
|
|
15
|
-
*/
|
|
16
|
-
projects: [
|
|
17
|
-
{
|
|
18
|
-
name: 'Chrome Stable',
|
|
19
|
-
use: {
|
|
20
|
-
browserName: 'chromium',
|
|
21
|
-
channel: 'chrome',
|
|
22
|
-
ignoreHTTPSErrors: true,
|
|
23
|
-
/**
|
|
24
|
-
* We should be able to use these 'use' blocks at the App level to provide config data to our micro frontends.
|
|
25
|
-
* This might include what backend to run against, what username password combo to use etc.
|
|
26
|
-
*
|
|
27
|
-
* config: AppLevelPkgConfig;
|
|
28
|
-
*/
|
|
29
|
-
// config: {
|
|
30
|
-
// API_HOST: 'wss://dev-foundation1/gwf/',
|
|
31
|
-
// DEFAULT_USER: 'Derek',
|
|
32
|
-
// DEFAULT_PASSWORD: 'Paul',
|
|
33
|
-
// PORT: 5030,
|
|
34
|
-
// },
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
webServer: {
|
|
39
|
-
command: 'npm run dev:no-open',
|
|
40
|
-
url: 'http://localhost:5010/',
|
|
41
|
-
timeout: 120000,
|
|
42
|
-
reuseExistingServer: !process.env.CI,
|
|
43
|
-
},
|
|
44
|
-
use: {
|
|
45
|
-
baseURL: 'http://localhost:5010/',
|
|
46
|
-
},
|
|
47
|
-
// reporter: [['html', { open: 'never' }]],
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default config;
|
|
1
|
+
export { configDefaults as default } from '@genesislcap/foundation-testing/e2e';
|
package/test/e2e/pages/header.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
PackageConfig,
|
|
3
|
+
defaultAuditThresholds,
|
|
4
|
+
playAudit,
|
|
5
|
+
} from '@genesislcap/foundation-testing/e2e';
|
|
2
6
|
import type { Locator, Page } from '@playwright/test';
|
|
3
|
-
import { playAudit } from 'playwright-lighthouse';
|
|
4
7
|
|
|
5
8
|
export class HeaderPage {
|
|
6
9
|
config: PackageConfig;
|
package/jsdom.setup.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@genesislcap/foundation-testing/jsdom';
|
package/tsm.js
DELETED