be-hive 0.0.44 → 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.
@@ -1,19 +1,18 @@
1
- name: CI
2
-
1
+ name: Playwright Tests
3
2
  on: [push]
4
-
5
3
  jobs:
6
- build:
7
-
4
+ test:
5
+ timeout-minutes: 10
8
6
  runs-on: ubuntu-latest
9
-
10
7
  steps:
11
- - uses: actions/checkout@v1
12
- - uses: actions/setup-node@v1
8
+ - uses: actions/checkout@v2
9
+ - uses: actions/setup-node@v2
13
10
  with:
14
- version: 12
15
- - name: Run a one-line script
16
- run: echo Hello, world!
17
- - name: Run a multi-line script
18
- run: npm install-ci-test
19
-
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,6 +1,6 @@
1
1
  # be-hive
2
2
 
3
- [![Actions Status](https://github.com/bahrus/be-hive/workflows/CI/badge.svg)](https://github.com/bahrus/be-hive/actions?query=workflow%3ACI)
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
4
 
5
5
  ## Let it snow in August
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -20,17 +20,18 @@
20
20
  ],
21
21
  "types": "types.d.ts",
22
22
  "scripts": {
23
- "serve": "node node_modules/xtal-test/serve.js",
24
- "test": "node test/test-all.js",
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.492"
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
+ "may-it-serve": "0.0.0",
34
35
  "@custom-elements-manifest/analyzer": "0.5.7",
35
36
  "xtal-editor": "0.0.168",
36
37
  "xtal-shell": "0.0.27"
@@ -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
  }