Add designer smoke tests to CI (#2549)

This commit is contained in:
Opender Singh
2020-08-25 11:27:44 +12:00
committed by GitHub
parent 0319547f65
commit 3bcbd24c8a
2 changed files with 15 additions and 3 deletions

View File

@@ -29,8 +29,12 @@ jobs:
run: npm test
- name: Build core for smoke tests
run: npm run app-build:smoke:core
- name: Build designer for smoke tests
run: npm run app-build:smoke:designer
- name: Run core smoke tests
run: npm run test:smoke:core
- name: Run designer smoke tests
run: npm run test:smoke:designer
Windows:
name: Test Windows
runs-on: windows-latest
@@ -49,8 +53,12 @@ jobs:
run: npm test
- name: Build core for smoke tests
run: npm run app-build:smoke:core
- name: Build designer for smoke tests
run: npm run app-build:smoke:designer
- name: Run core smoke tests
run: npm run test:smoke:core
- name: Run designer smoke tests
run: npm run test:smoke:designer
Linux:
name: Test Linux
runs-on: ubuntu-latest
@@ -69,5 +77,9 @@ jobs:
run: npm test
- name: Build core for smoke tests
run: npm run app-build:smoke:core
- name: Build designer for smoke tests
run: npm run app-build:smoke:designer
- name: Run core smoke tests
run: npm run test:smoke:core
- name: Run designer smoke tests
run: npm run test:smoke:designer

View File

@@ -16,14 +16,14 @@ describe('Application launch', function() {
// path: '/Applications/Insomnia.app/Contents/MacOS/Insomnia',
// Run after app-package - mac
// path: path.join(__dirname, '../insomnia-app/dist/com.insomnia.app/mac/Insomnia.app/Contents/MacOS/Insomnia'),
// path: path.join(__dirname, '../insomnia-app/dist/com.insomnia.designer/mac/Insomnia.app/Contents/MacOS/Insomnia'),
// Run after app-package - Windows
// path: path.join(__dirname, '../insomnia-app/dist/com.insomnia.app/win-unpacked/Insomnia.exe'),
// path: path.join(__dirname, '../insomnia-app/dist/com.insomnia.designer/win-unpacked/Insomnia.exe'),
// Run after app-build - mac, Windows, Linux
path: electronPath,
args: [path.join(__dirname, '../../insomnia-app/build/com.insomnia.app')],
args: [path.join(__dirname, '../../insomnia-app/build/com.insomnia.designer')],
// Don't ask why, but don't remove chromeDriverArgs
// https://github.com/electron-userland/spectron/issues/353#issuecomment-522846725