mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
53bd5ab2d0
Summary: - Sets up spectron test suite inside its own directory and with its own dependencies (must run on a build of the app) - Sets up dummy test - Adds `run-spectron-specs` grunt task, and adds it to cibuild task - Cleans up spec tasks code Test Plan: - Run specs Reviewers: evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2256
23 lines
456 B
JavaScript
23 lines
456 B
JavaScript
import {Application} from 'spectron';
|
|
|
|
describe('Nylas', ()=> {
|
|
beforeEach((done)=>{
|
|
this.app = new Application({
|
|
path: jasmine.APP_PATH,
|
|
});
|
|
this.app.start().then(done);
|
|
});
|
|
|
|
afterEach((done)=> {
|
|
if (this.app && this.app.isRunning()) {
|
|
this.app.stop().then(done);
|
|
}
|
|
});
|
|
|
|
it('shows an initial window', ()=> {
|
|
this.app.client.getWindowCount().then((count)=> {
|
|
expect(count).toEqual(1);
|
|
});
|
|
});
|
|
});
|
|
|