Files
AngularTicTacToe/e2e/main.spec.ts
Yuri Cherepanov 99e7ec00bf eslint-migration - disable warnings/errors
Disable warnings and errors on initial code
empty functions/require
remove transations stub from spec test
2019-11-18 01:24:07 +02:00

31 lines
763 B
TypeScript

import {expect} from 'chai';
import {SpectronClient} from 'spectron';
import commonSetup from './common-setup';
describe('angular-electron App', function () {
commonSetup.apply(this);
/* eslint "@typescript-eslint/no-explicit-any": 0 */
let browser: any;
let client: SpectronClient;
beforeEach(function () {
client = this.app.client;
/* eslint "@typescript-eslint/no-explicit-any": 0 */
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);
});
});