fix/ e2e tests
This commit is contained in:
27
e2e/main.e2e.ts
Normal file
27
e2e/main.e2e.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import {expect} from 'chai';
|
||||
import {SpectronClient} from 'spectron';
|
||||
|
||||
import commonSetup from './common-setup';
|
||||
|
||||
describe('angular-electron App', function () {
|
||||
commonSetup.apply(this);
|
||||
|
||||
let browser: any;
|
||||
let client: SpectronClient;
|
||||
|
||||
beforeEach(function () {
|
||||
client = this.app.client;
|
||||
browser = client as any;
|
||||
});
|
||||
|
||||
it('should display message saying App works !', async function () {
|
||||
const text = await browser.getText('app-home h1');
|
||||
expect(text).to.equal('App works !');
|
||||
});
|
||||
|
||||
it('creates initial windows', async function () {
|
||||
const count = await client.getWindowCount();
|
||||
expect(count).to.equal(1);
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user