Skip to content

Commit

Permalink
updated jimaku feature testings
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Jan 21, 2024
1 parent 8ebef26 commit 689b43f
Show file tree
Hide file tree
Showing 16 changed files with 297 additions and 184 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Extensions
name: Build And Test Extensions

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
browser: [chrome, edge]
browser: [chrome, edge, chromium]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
Expand All @@ -42,7 +42,7 @@ jobs:
needs: build
strategy:
matrix:
browser: [chrome, edge]
browser: [chrome, edge, chromium]
steps:
- uses: actions/checkout@v4
- name: Download artifacts
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "plasmo build --no-minify",
"package": "plasmo package",
"clean": "rm -rf build && rm -rf .plasmo",
"test": "playwright test"
"test": "playwright test",
"test:prepare": "mv build/chrome-mv3-prod build/extension"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand Down Expand Up @@ -49,6 +50,7 @@
"@types/react": "18.2.37",
"@types/react-dom": "18.2.15",
"@types/semver": "^7.5.6",
"glob": "^10.3.10",
"postcss": "8.4.31",
"prettier": "3.0.3",
"typescript": "5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { defineConfig, devices } from '@playwright/test';
*/
export default defineConfig({
timeout: 60000,
testDir: './test',
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand Down
37 changes: 3 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/adapters/capture-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function startDanmakuMonitor(settings: Settings): MutationObserver {
undefined
],
undefined,
undefined,
[ 99, 99, 99, '', 99 ],
undefined,
undefined,
undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/settings/fragments/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function FeatureSettings({ state, useHandler }: StateProxy<SettingSchema>): JSX.
const props = asStateProxy(useBinding(state[f], true))

return (
<div key={f} className="bg-white dark:bg-gray-800 shadow-md rounded-md p-4 mb-4">
<div key={f} id={`features.${f}`} className="bg-white dark:bg-gray-800 shadow-md rounded-md p-4 mb-4">
<Switch label={
<div>
<Typography className="font-semibold">
Expand Down
Loading

0 comments on commit 689b43f

Please sign in to comment.