import { expect } from 'chai'; import { SpectronClient } from 'spectron'; import commonSetup from './common-setup'; describe('angular-electron App', () => { commonSetup.apply(this); let client: SpectronClient; beforeEach(function() { client = this.app.client; }); it('creates initial windows', async () => { const count = await client.getWindowCount(); expect(count).to.equal(1); }); it('should display message saying App works !', async () => { const elem = await client.$('app-home h1'); const text = await elem.getText(); expect(text).to.equal('App works !'); }); });