be-hive 0.0.42 → 0.0.45

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.
@@ -0,0 +1,18 @@
1
+ name: Playwright Tests
2
+ on: [push]
3
+ jobs:
4
+ test:
5
+ timeout-minutes: 10
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v2
9
+ - uses: actions/setup-node@v2
10
+ with:
11
+ node-version: '16.x'
12
+ - name: Install dependencies
13
+ run: npm ci
14
+ - name: Install Playwright
15
+ run: npx playwright install --with-deps
16
+ - name: Run Playwright tests
17
+ run: npm run test
18
+
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # be-hive
2
2
 
3
+ [![Playwright Tests](https://github.com/bahrus/be-hive/actions/workflows/CI.yml/badge.svg)](https://github.com/bahrus/be-hive/actions/workflows/CI.yml)
4
+
3
5
  ## Let it snow in August
4
6
 
5
7
  be-hive is the Queen Bee of the [may-it-be](https://github.com/bahrus/may-it-be) HTML frimework.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.42",
3
+ "version": "0.0.45",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -20,18 +20,21 @@
20
20
  ],
21
21
  "types": "types.d.ts",
22
22
  "scripts": {
23
- "serve": "node node_modules/xtal-test/serve.js",
24
- "test": "echo \"Error: no test specified\" && exit 1",
23
+ "serve": "node node_modules/may-it-serve/serve.js",
24
+ "test": "playwright test",
25
25
  "package-check": "package-check",
26
26
  "doc": "custom-elements-manifest analyze"
27
27
  },
28
28
  "dependencies": {
29
- "xtal-element": "0.0.490"
29
+ "xtal-element": "0.0.493"
30
30
  },
31
31
  "devDependencies": {
32
+ "@playwright/test": "1.21.1",
32
33
  "@skypack/package-check": "0.2.2",
33
- "xtal-test": "0.0.56",
34
- "@custom-elements-manifest/analyzer": "0.5.7"
34
+ "may-it-serve": "0.0.0",
35
+ "@custom-elements-manifest/analyzer": "0.5.7",
36
+ "xtal-editor": "0.0.168",
37
+ "xtal-shell": "0.0.27"
35
38
  },
36
39
  "repository": {
37
40
  "type": "git",
@@ -0,0 +1,28 @@
1
+ // playwright.config.ts
2
+ import { devices } from '@playwright/test';
3
+ const config = {
4
+ webServer: {
5
+ command: 'npm run serve',
6
+ url: 'http://localhost:3030/',
7
+ timeout: 120 * 1000,
8
+ reuseExistingServer: !process.env.CI,
9
+ },
10
+ use: {
11
+ baseURL: 'http://localhost:3030/',
12
+ },
13
+ projects: [
14
+ {
15
+ name: 'chromium',
16
+ use: { ...devices['Desktop Chrome'] },
17
+ },
18
+ {
19
+ name: 'firefox',
20
+ use: { ...devices['Desktop Firefox'] },
21
+ },
22
+ {
23
+ name: 'webkit',
24
+ use: { ...devices['Desktop Safari'] },
25
+ },
26
+ ],
27
+ };
28
+ export default config;
@@ -0,0 +1,28 @@
1
+ // playwright.config.ts
2
+ import { PlaywrightTestConfig, devices } from '@playwright/test';
3
+ const config: PlaywrightTestConfig = {
4
+ webServer: {
5
+ command: 'npm run serve',
6
+ url: 'http://localhost:3030/',
7
+ timeout: 120 * 1000,
8
+ reuseExistingServer: !process.env.CI,
9
+ },
10
+ use: {
11
+ baseURL: 'http://localhost:3030/',
12
+ },
13
+ projects: [
14
+ {
15
+ name: 'chromium',
16
+ use: { ...devices['Desktop Chrome'] },
17
+ },
18
+ {
19
+ name: 'firefox',
20
+ use: { ...devices['Desktop Firefox'] },
21
+ },
22
+ {
23
+ name: 'webkit',
24
+ use: { ...devices['Desktop Safari'] },
25
+ },
26
+ ],
27
+ };
28
+ export default config;
package/register.ts CHANGED
@@ -10,7 +10,7 @@ export function register(ifWantsToBe: string, upgrade: string, extTagName: strin
10
10
  ifWantsToBe,
11
11
  upgrade,
12
12
  localName: extTagName,
13
- })
13
+ });
14
14
  });
15
15
 
16
16
  }