Skip to content

Commit

Permalink
fix: playwight tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Dec 20, 2023
1 parent 82619a0 commit 90a2d53
Show file tree
Hide file tree
Showing 19 changed files with 206 additions and 234 deletions.
2 changes: 1 addition & 1 deletion packages/adapters/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/normalize-package-data": "2.4.4",
"typescript": "5.3.3",
"unbuild": "1.2.1",
"vue": "3.3.12"
"vue": "3.3.13"
},
"peerDependencies": {
"@public-ui/components": "2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"devDependencies": {
"@stencil/angular-output-target": "0.8.3",
"@stencil/core": "4.8.2",
"@stencil/core": "4.9.0",
"@stencil/postcss": "2.1.0",
"@stencil/react-output-target": "0.5.3",
"@stencil/solid-output-target": "file:node_martin/stencil-solid-output-target-0.0.1.tgz",
Expand All @@ -88,8 +88,8 @@
"@types/pug": "2.0.10",
"@types/twig": "1.12.16",
"@types/wcag-contrast": "3.0.3",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"autoprefixer": "10.4.16",
"clean-css": "5.3.3",
"color-convert": "2.0.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/components/toaster/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ Type: `Promise<void>`

### `enqueue(toast: Toast) => Promise<() => void>`

#### Parameters

| Name | Type | Description |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `toast` | `{ description?: string \| undefined; render?: ((nodeRef: HTMLElement, options: { close: () => void; }) => void) \| undefined; label: string; type: "default" \| "info" \| "success" \| "warning" \| "error"; alertVariant?: "card" \| "msg" \| undefined; }` | |

#### Returns

Type: `Promise<() => void>`
Expand Down
1 change: 1 addition & 0 deletions packages/samples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@public-ui/sample-angular",
"version": "2.0.1",
"private": true,
"type": "module",
"scripts": {
"clean": "git clean -f -d -X",
"clean:locks": "rimraf package-lock.json pnpm-lock.yaml && npm run clean",
Expand Down
4 changes: 2 additions & 2 deletions packages/samples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"express": "4.18.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"cpy-cli": "5.0.0",
"eslint": "8.56.0",
"nodemon": "3.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/samples/vite/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/assets/**
*.feature
*.sass
*.scss
1 change: 0 additions & 1 deletion packages/samples/vite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/node_modules/@public-ui/themes/assets/codicons/codicon.css" />
<!-- <script type="module" src="/node_modules/@public-ui/components/dist/kolibri/kolibri.esm.js"></script> -->
<meta name="robots" content="noindex" />
<meta name="kolibri" content="dev-mode=true" />
</head>
Expand Down
8 changes: 3 additions & 5 deletions packages/samples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
"dev": "vite",
"preview": "vite preview",
"start": "npm run dev",
"test": "playwright test -c playwright-ct.config.ts",
"test:ui": "npm run test -- --ui",
"update": "ncu -t minor -u && pnpm i"
"test:ct": "playwright test -c playwright-ct.config.ts",
"test:ct-ui": "npm run test -- --ui"
},
"type": "module",
"dependencies": {
"@public-ui/components": "2.0.1",
"@public-ui/react": "2.0.1",
"@public-ui/themes": "2.0.1",
"@public-ui/theme-default": "2.0.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand All @@ -27,7 +26,6 @@
"@types/react-dom": "18.2.18",
"@unocss/preset-mini": "0.58.0",
"@vitejs/plugin-react": "4.2.1",
"npm-check-updates": "16.14.12",
"prettier": "3.1.1",
"typescript": "5.3.3",
"unocss": "0.58.0",
Expand Down
24 changes: 11 additions & 13 deletions packages/samples/vite/playwright/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="/node_modules/@public-ui/components/dist/kolibri/kolibri.esm.js"></script>
<title>Testing Page</title>
</head>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="/node_modules/@public-ui/components/dist/kolibri/kolibri.esm.js"></script>
<title>Testing Page</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>

<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>
</html>
3 changes: 0 additions & 3 deletions packages/samples/vite/public/.htaccess

This file was deleted.

18 changes: 0 additions & 18 deletions packages/samples/vite/public/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions packages/samples/vite/public/robots.txt

This file was deleted.

4 changes: 2 additions & 2 deletions packages/samples/vite/src/react.main.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineCustomElements } from '@public-ui/components/dist/loader';
import { register } from '@public-ui/components';
import { BMF } from '@public-ui/themes';
import { DEFAULT } from '@public-ui/theme-default';

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';

try {
await register(BMF, defineCustomElements);
await register(DEFAULT, defineCustomElements);
} catch (error) {
console.error(error);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
},
"devDependencies": {
"@types/node": "ts5.3",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"eslint": "8.56.0",
"eslint-plugin-no-loops": "0.3.0",
"typescript": "5.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"@public-ui/schema": "2.0.1",
"@public-ui/visual-tests": "2.0.1",
"@types/node": "ts5.3",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"eslint": "8.56.0",
"eslint-plugin-no-loops": "0.3.0",
"typescript": "5.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"devDependencies": {
"@public-ui/schema": "2.0.1",
"@types/node": "ts5.3",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"eslint": "8.56.0",
"eslint-plugin-no-loops": "0.3.0",
"nodemon": "3.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/tools/kolibri-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@public-ui/components": "2.0.1",
"@types/gradient-string": "1.1.5",
"@types/node": "20.10.5",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"cpy-cli": "5.0.0",
"depcheck": "1.4.7",
"eslint": "8.56.0",
Expand All @@ -53,7 +53,7 @@
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-loops": "0.3.0",
"eslint-plugin-react": "7.33.2",
"knip": "3.8.2",
"knip": "3.8.3",
"mocha": "10.2.0",
"nodemon": "3.0.2",
"rimraf": "3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/visual-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"depcheck": "1.4.7",
"eslint": "8.56.0",
"eslint-plugin-no-loops": "0.3.0",
"knip": "3.8.2",
"knip": "3.8.3",
"prettier": "3.1.1"
},
"files": [
Expand Down
Loading

0 comments on commit 90a2d53

Please sign in to comment.