Files
AngularTicTacToe/e2e/main.e2e.ts
2020-02-09 13:03:31 +01:00

28 lines
650 B
TypeScript

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);
});
});