-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from dhanyn10/cicd-webdriverio
use webdriverio for testing
- Loading branch information
Showing
8 changed files
with
390 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: cimg/node:20.16-browsers | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Install dependencies | ||
working_directory: ./app | ||
command: npm install | ||
|
||
- run: | ||
name: Build Electron apps | ||
working_directory: ./app | ||
command: npm run app:dir | ||
- run: | ||
name: Running X virtual framebuffer | ||
command: Xvfb :99 -ac & export DISPLAY=:99 | ||
background: true | ||
- run: | ||
name: Run WebdriverIO tests | ||
working_directory: ./app | ||
command: npx wdio run wdio.conf.js | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
token.json | ||
/app/dist |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { browser, $, expect } from '@wdio/globals' | ||
|
||
describe('Electron Testing', () => { | ||
it('should print application title', async () => { | ||
var title = await browser.getTitle() | ||
await expect(title).toEqual("MFM Gdrive") | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"module": "commonjs", | ||
"target": "es2022", | ||
"lib": [ | ||
"es2022", | ||
"dom" | ||
], | ||
"types": [ | ||
"node", | ||
"@wdio/globals/types", | ||
"expect-webdriverio", | ||
"@wdio/mocha-framework" | ||
], | ||
"skipLibCheck": true, | ||
"noEmit": true, | ||
"allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"include": [ | ||
"test", | ||
"wdio.conf.ts" | ||
] | ||
} |
Oops, something went wrong.