Skip to content

Commit 7c398e0

Browse files
committed
merg
2 parents c8fbc81 + cc11273 commit 7c398e0

File tree

241 files changed

+4659
-10491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+4659
-10491
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: npm run test
2121

2222
end2end-tests:
23-
runs-on: ubuntu-latest
23+
runs-on: windows-latest
2424

2525
steps:
2626
- name: Checkout code
@@ -32,16 +32,29 @@ jobs:
3232
- name: Install
3333
run: npm install
3434

35+
- name: Compile
36+
run: npx tsc -p tests\tsconfig.json
37+
38+
- name: Install Playwright Browsers
39+
run: npx playwright install --with-deps
40+
3541
- name: Build static data
3642
run: npm run build-mock-static-data
3743

3844
- name: Start mock server
3945
run: npm run serve-website &
46+
shell: bash
4047

4148
- name: Wait for the server
4249
run: ./.github/scripts/wait-for-server.ps1 -HostName "http://localhost:8080"
4350
shell: pwsh
4451

4552
- name: Run tests
46-
run: npm run test-e2e
47-
53+
run: npx playwright test tests/ --workers 1
54+
55+
- uses: actions/upload-artifact@v3
56+
if: failure()
57+
with:
58+
name: playwright-report
59+
path: test-results/
60+
retention-days: 30

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ node_modules/
77
src/config.design.json
88
src/config.publish.json
99
src/config.runtime.json
10-
10+
test-results/
11+
tsconfig.tsbuildinfo

js/HipObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// and callback functions for displaying items outside the control.
33

44
//-------------------------------------------------------------------------------------------------
5-
// The following varible name is defined by partner
5+
// The following variable name is defined by partner
66
// Make sure it has no conflicts to any other your variable names.
77
// The name defined here influence how to generate get hip URL that has format "http://p.client.hip.live.com/GetHIP/GetWLSPHIP0/<the namedefined here>?".
88
// Replace '< >' there with the name here.

package-lock.json

Lines changed: 784 additions & 7881 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 69 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"build-publisher": "webpack --config webpack.publisher.js",
1818
"build-runtime": "webpack --config webpack.runtime.js",
1919
"build-function": "webpack --config webpack.function.js",
20-
"test-e2e": "node node_modules/mocha/bin/_mocha -r mocha.js tests/e2e/**/*.spec.ts --timeout 3000000",
2120
"test": "node node_modules/mocha/bin/_mocha -r mocha.js src/**/*.spec.ts",
2221
"deploy-function": "npm run build-function && cd dist/function && func azure functionapp publish < function app name >",
2322
"publish": "webpack --config webpack.publisher.js && node dist/publisher/index.js && npm run serve-website",
@@ -29,94 +28,92 @@
2928
"lint:fix": "eslint src/**/*.ts --fix"
3029
},
3130
"devDependencies": {
32-
"@azure/storage-blob": "12.13.0",
33-
"@types/chai": "^4.3.4",
31+
"@azure/storage-blob": "12.14.0",
32+
"@types/chai": "^4.3.5",
3433
"@types/google-maps": "^3.2.3",
3534
"@types/knockout": "^3.4.72",
3635
"@types/knockout.mapping": "^2.0.37",
37-
"@types/knockout.validation": "0.0.38",
36+
"@types/knockout.validation": "0.0.39",
3837
"@types/mime": "^3.0.1",
3938
"@types/mocha": "10.0.1",
40-
"@types/node": "^18.15.3",
41-
"@types/puppeteer": "5.4.7",
42-
"@typescript-eslint/eslint-plugin": "^5.55.0",
43-
"@typescript-eslint/parser": "^5.55.0",
39+
"@types/node": "^20.3.1",
40+
"@typescript-eslint/eslint-plugin": "^5.60.0",
41+
"@typescript-eslint/parser": "^5.60.0",
4442
"autoprefixer": "^10.4.14",
4543
"buffer": "^6.0.3",
4644
"chai": "^4.3.7",
4745
"clean-webpack-plugin": "4.0.0",
4846
"copy-webpack-plugin": "^11.0.0",
49-
"css-loader": "^6.7.3",
50-
"eslint": "^8.36.0",
47+
"css-loader": "^6.8.1",
48+
"eslint": "^8.43.0",
5149
"file-loader": "^6.2.0",
5250
"html-loader": "^4.2.0",
53-
"mini-css-extract-plugin": "^2.7.3",
51+
"mini-css-extract-plugin": "^2.7.6",
5452
"mocha": "^10.2.0",
5553
"path": "^0.12.7",
56-
"postcss-loader": "^7.0.2",
57-
"puppeteer": "19.7.5",
54+
"postcss-loader": "^7.3.3",
5855
"querystring-es3": "^0.2.1",
5956
"raw-loader": "^4.0.2",
60-
"sass": "^1.59.3",
61-
"sass-loader": "^13.2.0",
57+
"sass": "^1.63.6",
58+
"sass-loader": "^13.3.2",
6259
"stream-browserify": "^3.0.0",
63-
"style-loader": "^3.3.2",
64-
"terser-webpack-plugin": "^5.3.7",
65-
"ts-loader": "^9.4.2",
60+
"style-loader": "^3.3.3",
61+
"terser-webpack-plugin": "^5.3.9",
62+
"ts-loader": "^9.4.3",
6663
"ts-node": "10.9.1",
6764
"typescript": "^4.9.5",
68-
"url-loader": "^4.1.1",
69-
"webpack": "5.76.1",
70-
"webpack-cli": "5.0.1",
71-
"webpack-dev-server": "4.12.0",
72-
"webpack-merge": "5.8.0"
65+
"webpack": "5.88.0",
66+
"webpack-cli": "5.1.4",
67+
"webpack-dev-server": "4.15.1",
68+
"webpack-merge": "5.9.0",
69+
"playwright": "1.35.1",
70+
"@playwright/test": "1.35.1"
7371
},
74-
"dependencies": {
75-
"@azure/api-management-custom-widgets-scaffolder": "^1.0.0-beta.2",
76-
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1",
77-
"@azure/msal-browser": "^2.34.0",
78-
"@braintree/sanitize-url": "6.0.2",
79-
"@microsoft/applicationinsights-web": "^2.8.11",
80-
"@monaco-editor/loader": "^1.3.2",
81-
"@paperbits/azure": "0.1.587",
82-
"@paperbits/common": "0.1.587",
83-
"@paperbits/core": "0.1.587",
84-
"@paperbits/forms": "0.1.587",
85-
"@paperbits/prosemirror": "0.1.587",
86-
"@paperbits/styles": "0.1.587",
87-
"@webcomponents/custom-elements": "1.5.1",
88-
"@webcomponents/shadydom": "^1.10.0",
89-
"client-oauth2": "4.3.3",
90-
"codemirror": "^5.65.5",
91-
"core-js": "^3.29.1",
92-
"d3": "7.8.2",
93-
"file-saver": "^2.0.5",
94-
"google-maps": "^4.3.3",
95-
"graphql": "^15.5.0",
96-
"graphql-config": "^4.0.1",
97-
"graphql-language-service": "3.1.6",
98-
"idb-keyval": "^6.2.0",
99-
"js-beautify": "^1.14.7",
100-
"knockout": "^3.5.1",
101-
"knockout-mapping": "^2.6.0",
102-
"knockout.validation": "^2.0.4",
103-
"liquidjs": "^10.6.1",
104-
"lunr": "^2.3.9",
105-
"mime": "^3.0.0",
106-
"moment": "^2.29.4",
107-
"monaco-editor": "^0.29.1",
108-
"msal": "^1.4.17",
109-
"prettier": "^2.8.4",
110-
"prismjs": "^1.29.0",
111-
"rehype-raw": "^6.1.1",
112-
"rehype-sanitize": "^5.0.1",
113-
"rehype-stringify": "^9.0.3",
114-
"remark": "^14.0.2",
115-
"remark-gfm": "^3.0.1",
116-
"remark-parse": "^10.0.1",
117-
"remark-rehype": "^10.1.0",
118-
"saxen": "^8.1.2",
119-
"topojson-client": "^3.1.0",
120-
"html-truncate": "1.2.2"
121-
}
122-
}
72+
"dependencies": {
73+
"@azure/api-management-custom-widgets-scaffolder": "^1.0.0-beta.2",
74+
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1",
75+
"@azure/msal-browser": "^2.37.1",
76+
"@braintree/sanitize-url": "6.0.2",
77+
"@microsoft/applicationinsights-web": "^3.0.2",
78+
"@monaco-editor/loader": "^1.3.3",
79+
"@paperbits/azure": "0.1.590",
80+
"@paperbits/common": "0.1.590",
81+
"@paperbits/core": "0.1.590",
82+
"@paperbits/forms": "0.1.590",
83+
"@paperbits/styles": "0.1.590",
84+
"@webcomponents/custom-elements": "1.6.0",
85+
"@webcomponents/shadydom": "^1.11.0",
86+
"client-oauth2": "4.3.3",
87+
"codemirror": "^6.0.1",
88+
"core-js": "^3.31.0",
89+
"d3": "7.8.5",
90+
"file-saver": "^2.0.5",
91+
"google-maps": "^4.3.3",
92+
"graphql": "^15.5.0",
93+
"graphql-config": "^4.0.1",
94+
"graphql-language-service": "3.1.6",
95+
"idb-keyval": "^6.2.1",
96+
"js-beautify": "^1.14.8",
97+
"knockout": "^3.5.1",
98+
"knockout-mapping": "^2.6.0",
99+
"knockout.validation": "^2.0.4",
100+
"liquidjs": "^10.8.3",
101+
"lunr": "^2.3.9",
102+
"mime": "^3.0.0",
103+
"moment": "^2.29.4",
104+
"monaco-editor": "^0.29.1",
105+
"msal": "^1.4.18",
106+
"prettier": "^2.8.8",
107+
"prismjs": "^1.29.0",
108+
"rehype-raw": "^6.1.1",
109+
"rehype-sanitize": "^5.0.1",
110+
"rehype-stringify": "^9.0.3",
111+
"remark": "^14.0.3",
112+
"remark-gfm": "^3.0.1",
113+
"remark-parse": "^10.0.2",
114+
"remark-rehype": "^10.1.0",
115+
"saxen": "^8.1.2",
116+
"topojson-client": "^3.1.0",
117+
"html-truncate": "1.2.2"
118+
}
119+
}

playwright.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from '@playwright/test';
2+
3+
export default defineConfig({
4+
retries: 2,
5+
use: {
6+
video: 'retain-on-failure'
7+
}
8+
});

0 commit comments

Comments
 (0)