@dxos/react-client 2.33.7-dev.848c0285 → 2.33.7-dev.c7ce8f32
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/.rush/temp/package-deps_build.json +4 -2
- package/.rush/temp/package-deps_build_test.json +4 -2
- package/.rush/temp/shrinkwrap-deps.json +31 -2
- package/dist/tests/playwright/config.d.ts +4 -0
- package/dist/tests/playwright/config.d.ts.map +1 -0
- package/dist/tests/playwright/config.js +18 -0
- package/dist/tests/playwright/config.js.map +1 -0
- package/dist/tests/playwright/smoke.spec.d.ts +2 -0
- package/dist/tests/playwright/smoke.spec.d.ts.map +1 -0
- package/dist/tests/playwright/smoke.spec.js +20 -0
- package/dist/tests/playwright/smoke.spec.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -14
- package/react-client.build.log +0 -21
- package/tests/playwright/config.ts +19 -0
- package/tests/playwright/smoke.spec.ts +17 -0
package/package.json
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "2.33.7-dev.
|
|
3
|
+
"version": "2.33.7-dev.c7ce8f32",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "DXOS.org",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"types": "dist/src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@dxos/async": "2.33.7-dev.
|
|
11
|
-
"@dxos/bot-factory-client": "2.33.7-dev.
|
|
12
|
-
"@dxos/client": "2.33.7-dev.
|
|
13
|
-
"@dxos/config": "2.33.7-dev.
|
|
14
|
-
"@dxos/credentials": "2.33.7-dev.
|
|
15
|
-
"@dxos/crypto": "2.33.7-dev.
|
|
16
|
-
"@dxos/debug": "2.33.7-dev.
|
|
17
|
-
"@dxos/echo-db": "2.33.7-dev.
|
|
18
|
-
"@dxos/network-manager": "2.33.7-dev.
|
|
19
|
-
"@dxos/react-async": "2.33.7-dev.
|
|
20
|
-
"@dxos/util": "2.33.7-dev.
|
|
10
|
+
"@dxos/async": "2.33.7-dev.c7ce8f32",
|
|
11
|
+
"@dxos/bot-factory-client": "2.33.7-dev.c7ce8f32",
|
|
12
|
+
"@dxos/client": "2.33.7-dev.c7ce8f32",
|
|
13
|
+
"@dxos/config": "2.33.7-dev.c7ce8f32",
|
|
14
|
+
"@dxos/credentials": "2.33.7-dev.c7ce8f32",
|
|
15
|
+
"@dxos/crypto": "2.33.7-dev.c7ce8f32",
|
|
16
|
+
"@dxos/debug": "2.33.7-dev.c7ce8f32",
|
|
17
|
+
"@dxos/echo-db": "2.33.7-dev.c7ce8f32",
|
|
18
|
+
"@dxos/network-manager": "2.33.7-dev.c7ce8f32",
|
|
19
|
+
"@dxos/react-async": "2.33.7-dev.c7ce8f32",
|
|
20
|
+
"@dxos/util": "2.33.7-dev.c7ce8f32",
|
|
21
21
|
"assert": "^2.0.0",
|
|
22
22
|
"debug": "^4.3.3",
|
|
23
23
|
"use-subscription": "^1.8.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@dxos/esbuild-plugins": "~2.28.
|
|
26
|
+
"@dxos/esbuild-plugins": "~2.28.10",
|
|
27
27
|
"@dxos/eslint-plugin": "~1.0.33",
|
|
28
28
|
"@dxos/protocols-toolchain": "2.33.6",
|
|
29
29
|
"@mui/material": "^5.8.1",
|
|
30
|
+
"@playwright/test": "^1.14.1",
|
|
30
31
|
"@testing-library/react": "^11.0.4",
|
|
31
32
|
"@testing-library/react-hooks": "5.1.2",
|
|
32
33
|
"@types/debug": "^4.1.7",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"eslint": "^7.12.1",
|
|
41
42
|
"expect": "~27.0.2",
|
|
42
43
|
"level-js": "^5.0.2",
|
|
44
|
+
"playwright": "^1.14.1",
|
|
43
45
|
"raf": "^3.4.1",
|
|
44
46
|
"react": "^18.1.0",
|
|
45
47
|
"react-dom": "^18.1.0",
|
|
@@ -65,6 +67,7 @@
|
|
|
65
67
|
"build:book": "toolchain build:book",
|
|
66
68
|
"build:test": "toolchain build:test",
|
|
67
69
|
"lint": "toolchain lint",
|
|
68
|
-
"test": "toolchain test"
|
|
70
|
+
"test": "toolchain test && npm run test:playwright",
|
|
71
|
+
"test:playwright": "playwright test --config ./tests/playwright/config.ts"
|
|
69
72
|
}
|
|
70
73
|
}
|
package/react-client.build.log
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Invoking: toolchain build:test
|
|
2
|
-
|
|
3
|
-
Tests started
|
|
4
|
-
Typescript
|
|
5
|
-
OK in 8582 ms
|
|
6
|
-
no problems
|
|
7
|
-
OK in 8075 ms
|
|
8
|
-
|
|
9
|
-
Mocha Tests
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
useSelection
|
|
13
|
-
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
|
|
14
|
-
✓ gets updated items selection (293ms)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
1 passing (302ms)
|
|
18
|
-
|
|
19
|
-
OK in 2608 ms
|
|
20
|
-
|
|
21
|
-
Tests complete in 19293 ms
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2021 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { PlaywrightTestConfig } from '@playwright/test';
|
|
6
|
+
|
|
7
|
+
const config: PlaywrightTestConfig = {
|
|
8
|
+
use: {
|
|
9
|
+
headless: !!process.env.CI || !!process.env.HEADLESS
|
|
10
|
+
},
|
|
11
|
+
webServer: {
|
|
12
|
+
command: 'npm run book',
|
|
13
|
+
port: 8080,
|
|
14
|
+
timeout: 300 * 1000,
|
|
15
|
+
reuseExistingServer: !process.env.CI
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default config;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2021 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { test, expect } from '@playwright/test';
|
|
6
|
+
import waitForExpect from 'wait-for-expect';
|
|
7
|
+
|
|
8
|
+
test.describe('Smoke test', () => {
|
|
9
|
+
test('Renders tutorial from descriptor', async ({ page }) => {
|
|
10
|
+
await page.goto('#/__story/stories-client-stories-tsx/Primary');
|
|
11
|
+
|
|
12
|
+
await waitForExpect(async () => {
|
|
13
|
+
const isVisible = await page.isVisible(':has-text("initialized")');
|
|
14
|
+
expect(isVisible).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
});
|