Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"lint:fix": "oxlint --fix",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"wdio": "wdio run ./wdio.conf.ts",
"test:e2e": "wdio run ./wdio.conf.ts"
"wdio": "wdio run wdio.conf.ts",
"test:e2e": "wdio run wdio.conf.ts"
},
"dependencies": {
"@base-ui/react": "^1.0.0",
Expand All @@ -36,6 +36,7 @@
"@tauri-apps/plugin-opener": "^2.5.3",
"@tauri-apps/plugin-store": "^2.4.2",
"@tauri-apps/plugin-stronghold": "^2.3.1",
"@wdio/cli": "^9.23.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.562.0",
Expand All @@ -60,12 +61,12 @@
"@testing-library/react": "^16.3.1",
"@testing-library/user-event": "^14.6.1",
"@types/jsdom": "^27.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^25.0.6",
"@types/react": "^19.2.8",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/ui": "^4.0.16",
"@wdio/cli": "^9.23.0",
"@wdio/local-runner": "^9.23.0",
"@wdio/mocha-framework": "^9.23.0",
"@wdio/spec-reporter": "^9.20.0",
Expand All @@ -78,10 +79,11 @@
"tailwindcss": "^4.1.18",
"tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.4.0",
"types": "link:@wdio/globals/types",
"typescript": "~5.8.3",
"typescript-eslint": "^8.52.0",
"vite": "^7.3.1",
"vitest": "^4.0.16",
"webdriverio": "^9.23.0"
}
}
}
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion src-tauri/src/actions/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use crate::s3::{
};
use crate::AppState;

/// Global state for tracking active downloads and their cancellation tokens
lazy_static::lazy_static! {
static ref ACTIVE_DOWNLOADS: Arc<Mutex<HashMap<String, watch::Sender<bool>>>> =
Arc::new(Mutex::new(HashMap::new()));
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/actions/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use crate::s3::{
};
use crate::AppState;

/// Global state for tracking active uploads and their cancellation tokens
lazy_static::lazy_static! {
static ref ACTIVE_UPLOADS: Arc<Mutex<HashMap<String, watch::Sender<bool>>>> =
Arc::new(Mutex::new(HashMap::new()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function EditConnectionPage() {
<div className='w-full'>
<Card>
<form
data-testid="connection-form"
onSubmit={(e) => {
e.preventDefault();
e.stopPropagation();
Expand Down
1 change: 1 addition & 0 deletions src/routes/(credential-manager)/connections/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function NewConnectionPage() {
<div className='w-full'>
<Card>
<form
data-testid="connection-form"
onSubmit={(e) => {
e.preventDefault();
e.stopPropagation();
Expand Down
35 changes: 35 additions & 0 deletions tests/e2e/specs/example.e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/// <reference types="@wdio/mocha-framework" />
/// <reference types="webdriverio" />

// calculates the luma from a hex color `#abcdef`
function luma(hex:string) {
if (hex.startsWith('#')) {
hex = hex.substring(1);
}

const rgb = parseInt(hex, 16);
const r = (rgb >> 16) & 0xff;
const g = (rgb >> 8) & 0xff;
const b = (rgb >> 0) & 0xff;
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
}

describe('Hello Tauri', () => {
it('should be cordial', async () => {
const header = await $('body > h1');
const text = await header.getText();
expect(text).toMatch(/^[hH]ello/);
});

it('should be excited', async () => {
const header = await $('body > h1');
const text = await header.getText();
expect(text).toMatch(/!$/);
});

it('should be easy on the eyes', async () => {
const body = await $('body');
const backgroundColor = await body.getCSSProperty('background-color');
expect(luma(backgroundColor.parsed.hex)).toBeLessThan(100);
});
});
33 changes: 24 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,45 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,

/* Path aliases */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
"@/*": [
"./src/*"
]
},
"types": [
"node",
"@wdio/globals/types",
"@types/mocha",
"@wdio/mocha-framework"
]
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
"include": [
"src"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
Loading
Loading