Skip to content

Commit a885c05

Browse files
committed
test: add missing test bits
ugh, i'm not sure what happened. some combination of a laptop crash and late night coding. lots of missing bits for the tests.
1 parent d3a5517 commit a885c05

35 files changed

+371
-4
lines changed

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/dist
22
plugins/*/dist
3-
plugins/*/mdist
3+
plugins/*/mdist
4+
tests/**/*.md
5+
store/**/*.md

package-lock.json

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

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
3333
"open": "electron . shell",
3434
"start": "WATCH_ARGS='-open' npm run watch",
35-
"test": "echo \"Error: no test specified\" && exit 1"
35+
"mirror": "T=$(mktemp -d); (cd $T && git clone --depth=1 git@github.com:guidebooks/store.git) && echo \"mirror stage in $T/store\" && ./bin/madwizard.js mirror $T/store/guidebooks ./store",
36+
"mirror-if-needed": "if [ ! -d ./store ]; then npm run mirror; fi",
37+
"test": "playwright test --workers 1"
3638
},
3739
"keywords": [],
3840
"author": "@starpit",
@@ -79,6 +81,7 @@
7981
"@kui-shell/proxy": "11.5.0-dev-20220523-155545",
8082
"@kui-shell/react": "11.5.0-dev-20220523-155545",
8183
"@kui-shell/webpack": "11.5.0-dev-20220523-155545",
84+
"@playwright/test": "^1.22.2",
8285
"@types/debug": "^4.1.7",
8386
"@types/node": "14.11.8",
8487
"@types/react": "17.0.39",
@@ -91,21 +94,22 @@
9194
"eslint": "^8.15.0",
9295
"husky": "^8.0.1",
9396
"lint-staged": "^12.4.1",
97+
"playwright": "^1.22.2",
9498
"prettier": "^2.6.2",
9599
"typescript": "4.6.4"
96100
},
97101
"dependencies": {
98102
"@kui-shell/client": "file:./plugins/plugin-client-default",
99-
"@kui-shell/plugin-codeflare": "file:./plugins/plugin-codeflare",
100-
"@kui-shell/plugin-madwizard": "file:./plugins/plugin-madwizard",
101103
"@kui-shell/core": "11.5.0-dev-20220523-155545",
102104
"@kui-shell/plugin-bash-like": "11.5.0-dev-20220523-155545",
103105
"@kui-shell/plugin-carbon-themes": "11.5.0-dev-20220523-155545",
104106
"@kui-shell/plugin-client-common": "11.5.0-dev-20220523-155545",
107+
"@kui-shell/plugin-codeflare": "file:./plugins/plugin-codeflare",
105108
"@kui-shell/plugin-core-support": "11.5.0-dev-20220523-155545",
106109
"@kui-shell/plugin-electron-components": "11.5.0-dev-20220523-155545",
107110
"@kui-shell/plugin-git": "11.5.0-dev-20220523-155545",
108111
"@kui-shell/plugin-kubectl": "11.5.0-dev-20220523-155545",
112+
"@kui-shell/plugin-madwizard": "file:./plugins/plugin-madwizard",
109113
"@kui-shell/plugin-patternfly4-themes": "11.5.0-dev-20220523-155545",
110114
"@kui-shell/plugin-proxy-support": "11.5.0-dev-20220523-155545",
111115
"@kui-shell/plugin-s3": "11.5.0-dev-20220523-155545"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
imports:
3+
- snippets-in-tab3.md
4+
---
5+
6+
<!-- You should see a tree view. This is the Imports.tsx component -->
7+
8+
::imports
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
imports:
3+
- snippets-in-tab4.md
4+
---
5+
6+
<!-- You should see a tree view. This is the Imports.tsx component -->
7+
8+
::imports
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
imports:
3+
- snippets-in-tab5.md
4+
---
5+
6+
<!-- You should see a tree view. This is the Imports.tsx component -->
7+
8+
::imports
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
imports:
3+
- importd.md
4+
- snippets-in-tab5.md
5+
---
6+
7+
<!-- You should see a tree view. This is the Imports.tsx component -->
8+
9+
::imports
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
imports:
3+
- snippets-in-tab6.md
4+
---
5+
6+
::imports
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
imports:
3+
- importg.md
4+
- importa.md
5+
- importd.md
6+
---
7+
8+
::imports
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
imports:
3+
- importgg.md
4+
- importaa.md
5+
- importdd.md
6+
---
7+
8+
::imports

0 commit comments

Comments
 (0)