Gathering detailed insights and metrics for spectron-dialog-addon
Gathering detailed insights and metrics for spectron-dialog-addon
Gathering detailed insights and metrics for spectron-dialog-addon
Gathering detailed insights and metrics for spectron-dialog-addon
Provide manipulation of dialog in your spectron's specs.
npm install spectron-dialog-addon
Typescript
Module System
TypeScript (81.87%)
HTML (18.13%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
19 Commits
3 Forks
4 Watchers
16 Branches
10 Contributors
Updated on Aug 02, 2022
Latest Version
1.0.1
Package Id
spectron-dialog-addon@1.0.1
Unpacked Size
6.81 kB
Size
3.25 kB
File Count
11
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Mock electron dialog and provide return values.
1npm install --save-dev spectron-dialog-addon
1import { Application } from 'spectron' 2import * as electron from 'electron' 3import * as path from 'path' 4import dialogAddon from '../src/index' 5import { expect } from 'chai' 6 7const app = new Application({ 8 args: [path.join(__dirname, '.')], 9 path: (electron as any) as string 10}) 11dialogAddon.apply(app) 12 13describe('mock showOpenDialog', function() { 14 this.timeout(10000) 15 16 beforeEach(async () => { 17 await app.start() 18 dialogAddon.mock([{ method: 'showOpenDialog', value: { filePaths: ['faked.txt'] } }]) 19 }) 20 21 afterEach(async () => { 22 await app.stop() 23 }) 24 25 it('should return faked.txt', async () => { 26 await app.client.waitForExist('#show-open-dialog-button') 27 await app.client.click('#show-open-dialog-button') 28 const text: any = await app.client.getText('#return-value') 29 expect(text).to.equal(JSON.stringify(['faked.txt'])) 30 }) 31})
initialize dialogAddon
NOTE: You must call this after Electron app started.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/15 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More