Files
AngularTicTacToe/e2e/main.e2e.ts
2021-06-25 17:21:39 +02:00

28 lines
634 B
TypeScript

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